You are here

function domain_admin_filter in Domain Access 7.3

Same name and namespace in other branches
  1. 7.2 domain.module \domain_admin_filter()

Determines if node lists should be filtered for admins.

Return value

Boolean TRUE or FALSE.

1 call to domain_admin_filter()
domain_query_node_access_alter in ./domain.module
Implements hook_query_TAG_alter().

File

./domain.module, line 3469
Core module functions for the Domain Access suite.

Code

function domain_admin_filter() {
  static $return;
  if (!isset($return)) {
    $admin_force = variable_get('domain_force_admin', FALSE);

    // In any of the following cases, do not enforce any rules.
    if (empty($admin_force) || !user_access('bypass node access') || domain_grant_all()) {
      $return = FALSE;
    }
    else {
      $return = TRUE;
    }
  }
  return $return;
}