adds permission method to class Page