Currently print calls node_access directly and if a module overrides the access_callback via hook_menu_alter() then the corresponding access callback is not called, instead node_access is called.

To fix this I propose a print_delegate_node_access() helper function that will call the access_callback from the menu item so that the correct callback is always called.

This is against 7.x-1.x, if it has legs and/or wanted in 7.x-2x I can try to re-roll against it later.

Comments

grndlvl’s picture

StatusFileSize
new1.73 KB
grndlvl’s picture

Status: Active » Needs review
grndlvl’s picture

Status: Needs review » Closed (won't fix)

Silly me, hook_node_access() how did I forget the?