I'm trying to use your Remove Nonviewable Menu Items module, but it's not working. I'm using path access to make certain pages unaccessible to non-logged in users. Unfortunately, the links are still viewable in the menu. I tried flushing the cache to no avail. Any hints?

Comments

ngroot’s picture

Component: User interface » Code
Assigned: Unassigned » ngroot
Status: Active » Closed (won't fix)

(Sorry for the absurdly slow response; I don't recall getting sent an email about this...hm.)

This module calls node_access() to determine if a node is viewable by the current user. The Path Access module doesn't use the Drupal node access system to control access; it does its own custom check on each page load using hook_init(), rather than hook_node_grants() like a node access module typically would. As far as Drupal's concerned, a user's permissions to view/edit/etc. a node are unaffected by Path Access.

It seems unlikely to me that any other security-related features of Drupal will work with Path Access either. If this is still an issue, you should probably ask the Path Access developers if they're planning to integrate it with the Drupal node access system.