You are here

function content_access_node_grants in Content Access 5

Same name and namespace in other branches
  1. 8 content_access.module \content_access_node_grants()
  2. 6 content_access.module \content_access_node_grants()
  3. 7 content_access.module \content_access_node_grants()

File

./content_access.module, line 59

Code

function content_access_node_grants($account, $op) {
  $return = array(
    'content_access_rid' => array_keys($account->roles),
  );
  return $account->uid ? array(
    'content_access_author' => array(
      $account->uid,
    ),
  ) + $return : $return;
}