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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | print-1983544-1-delegate_node_access.patch | 1.73 KB | grndlvl |
Comments
Comment #1
grndlvl commentedComment #2
grndlvl commentedComment #3
grndlvl commentedSilly me, hook_node_access() how did I forget the?