You are here

function oa_archive_node_grants in Open Atrium Archive 7.2

Implements hook_node_grants().

File

./oa_archive.module, line 30

Code

function oa_archive_node_grants($account, $op) {
  $grants = array();
  if ($space_id = oa_core_get_space_context(TRUE)) {
    if (og_user_access('node', $space_id, "view trash content", $account)) {
      $grants['trash_flag'] = array(
        $space_id + 1,
      );
    }
  }
  return $grants;
}