Closed (fixed)
Project:
Node Hierarchy
Version:
6.x-1.3
Component:
Drupal/PHP Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 May 2010 at 11:53 UTC
Updated:
13 May 2012 at 02:11 UTC
I've created my own View with Node Hierarchy: Parent Node as an argument (I needed a table, instead of the list provided by Node Hierarchy). I've enabled Node Hierarchy: Actions as field, but for some users the actions are disabled. These users can edit the relevant nodes. Debugging indicates that $node is empty in theme_nodehierarchy_actions($node).
Comments
Comment #1
jonathan_hunt commentedActually a node object with nid alone is being received. Looks like my problem lies elsewhere in node_access().
Comment #2
jonathan_hunt commentedOpened again. Found that with just the nid, node_access() wasn't properly testing edit perms for custom content types. The change below is working for me but the node_loads might be a bit heavy.
Comment #3
jbylsma commentedI'm OK with the node_load, as node_access expects a populated $node object. Committed, better late than never.