You are here

function rules_user_integration_access in Rules 7.2

User integration access callback.

Related topics

3 string references to 'rules_user_integration_access'
rules_user_action_info in modules/user.rules.inc
Implements hook_rules_action_info() on behalf of the user module.
rules_user_condition_info in modules/user.rules.inc
Implements hook_rules_condition_info() on behalf of the user module.
rules_user_event_info in modules/user.rules.inc
Implements hook_rules_event_info().

File

modules/user.rules.inc, line 109
Rules integration for the user module.

Code

function rules_user_integration_access($type, $name) {
  if ($type == 'event' || $type == 'condition') {
    return entity_access('view', 'user');
  }

  // Else return admin access.
  return user_access('administer users');
}