What block visibility PHP snippet would show a block only on node pages that the loged-in user can edit? The user may not own the node. In my case, I want to show the Content Complete block to people who can actually populate missing fields.
Share
check for node_access(“update”, $node) (more on http://api.drupal.org/api/function/node_access/6)
//first check whether it is a node page if(arg(0) == 'node' && is_numeric(arg(1))){ //load $node object $node = node_load(arg(1)) //check for node update access if (node_access("update", $node)){ return TRUE; } }