You are here

function simpleads_campaigns_node_access in SimpleAds 7

Implements hook_node_access().

File

modules/simpleads_campaigns/simpleads_campaigns.module, line 187

Code

function simpleads_campaigns_node_access($node, $op, $account) {
  if (isset($node->type) && $node->type == 'simpleads_campaign' && $op == 'view' && !user_access('administer nodes', $account)) {
    return NODE_ACCESS_DENY;
  }
}