You are here

function node_makemeeting_access in Make Meeting Scheduler 6

Implements node_access().

File

./makemeeting.module, line 263
Make Meeting module

Code

function node_makemeeting_access($op, $node, $account) {
  if ($op == 'create') {
    return user_access('create poll', $account);
  }

  // disabling the edit page: we don't give access to any user
  // reason: we're using custom urls to update the nodes, and only
  // the owner of the poll has the custom admin url
  if ($op == 'update') {
    return FALSE;
  }
  if ($op == 'delete') {
    if (user_access('delete poll', $account) && $account->uid == $node->uid) {
      return TRUE;
    }
  }
}