I want to allow anonymous user to access all the pages depending on a particular session set. These pages can be:
- Node - both published and unpublished
- Views pages
- Taxonomy terms
- custom hook menu urls etc I am able to handle node pages using hook_node_access. But is there any common hook and any other approach that allows me to grant access for all the pages. Also, for views if there is no permission for anonymous user, I should be able to grant permission depending on a session set.