18 Nov
2009
18 Nov
'09
3:18 p.m.
I think you need to add a "$" sign in line 7 Cheers, Svein-Tore With (username falcon)
function nodetype_access($op, $node, $account) { $is_author = $account->uid == $node->uid; switch ($op) { case 'create': return user_access('create nodetype', $account); case 'update': $output = user_access('edit own nodetype', $account) && [HERE]is_author || user_access('edit any nodetype', $account); if ($output) return TRUE; case 'delete': return user_access('delete own nodetype', $account) && $is_author || user_access('delete any nodetype', $account); } }