You are here

public function RuleConditionSet::access in Conditional Rules 7

Same name and namespace in other branches
  1. 8 includes/rules_conditional.plugin.inc \RuleConditionSet::access()

Whether the currently logged in user has access to all configured elements.

Note that this only checks whether the current user has permission to all configured elements, but not whether a user has access to configure Rule configurations in general. Use rules_config_access() for that.

Use this to determine access permissions for configuring or triggering the execution of certain configurations independent of the Rules UI.

Overrides RulesContainerPlugin::access

See also

rules_config_access()

File

includes/rules_conditional.plugin.inc, line 529
Rules plugin implementation.

Class

RuleConditionSet
Rule as condition set.

Code

public function access() {
  return $this->actions
    ->access() && parent::access();
}