I'm using hook_node_access to determine which site visitors can view which content, and all is working fine. The problem is that when viewing a book page, it's showing content that would be rejected by hook_node_access.
In other words: I have a book called BookA which contains 2 pieces of content called Content1 and Content2. Content1 is to be hidden from certain users and Content2 visible to all. I want BookA to omit Content1 from its list if the user is someone that shouldn't see it and to list Content2 only. If this is a user that's allowed to see both, then both Content1 and Content2 should be listed.
I have hook_node_access working fine - so when the non-privileged user clicks on Content1, they do get an access denied. What I'm saying essentially is that I want a way for the displaying of a Book page to honor what's indicated by hook_node_access and not list content where hook_node_access will indicate an access denied.
Thanks in advance for any help.