I'm a little stuck at the moment....

Been trying to restrict user access to certain pages of the book module, to allow parts of the book to be available only when a certain role is active for the logged in user.

At first I tried to add the 'Access Books' too hook_access, but that only gave me rough control over who was allowed to 'enter' the book module (for viewing)...

Then I gave 'tac_lite' a try, and that seemed like the thing I needed.... But alas, I've not found a proper way to do this just yet.
I already configured tac_lite to link the roles that are to get restricted to certain segments to the taxonomy-terms, and have tagged the book-pages accordingly.

eg:
Taxonomy:
- Novice
- Advanced
- Expert

Roles
- Novice
- Advanced
- Expert

Now what I wish to accomplish is, that when a user that has been granted the Advanced role, is that that person can only view the book-pages that have been marked with Advanced, but not the Expert and Novice pages.
Same goes for the other roles, there allowed to see their role-content, but not the others.
(Any book page that does not have tac_lite influence should remain visible/accessible however)

Could someone point me in the right direction?

Comments

Miszel’s picture

I would look for a solution based on the taxonomy access control module. I've never used the tac_lite module, but it seems to be easy to achieve with TAC.

Alex Regenbogen’s picture

Thanks Marcin for the tip...

I've tried the 'full' taxonomy access control, but it felt a little like trying to swat a mosquito with a wrecking-ball... (it did work however...)

The 'solution' for my typical situation was found in the node_access module.
This gave me the possibility to allow authors to select the required groups/roles upon content-creation, and that worked beautifully..

(Hopes this perhaps helps anyone else too)