When logged in user is trying to create a node his access is denied even if he has appropriative permissions. This is happening because function _node_resource_access does not load $node object if operation is 'create'

Comments

robloach’s picture

Might be able to combine the ifs...

if (!empty($args)) {
  $node = $op == 'create' ? $args[0] : node_load($args[0]);
}
ygerasimov’s picture

StatusFileSize
new795 bytes

Dear Rob, Thank you for your comments. Yes, combination is more elegant.

gdd’s picture

Status: Active » Fixed

Committed, thanks

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.