access control for pages

check if the current user has the required access to view the page content