[development] problems with permissions on node
Svein-Tore With
Svein-Tore.With at telemed.no
Wed Nov 18 14:18:58 UTC 2009
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);
> }
> }
More information about the development
mailing list