You are here

function node_makemeeting_simplepoll_access in Make Meeting Scheduler 6

node_access()

Parameters

mixed $op:

mixed $node:

mixed $account:

File

./makemeeting_simplepoll.module, line 163
Make Meeting Simple Poll module

Code

function node_makemeeting_simplepoll_access($op, $node, $account) {
  if ($op == 'create') {
    return user_access('create poll', $account);
  }
  if ($op == 'update') {
    return FALSE;
  }
  if ($op == 'delete') {
    if (user_access('delete poll', $account) && $account->uid == $node->uid) {
      return TRUE;
    }
  }
}