function RulesContainerPlugin::access

Overrides RulesPlugin::access

1 call to RulesContainerPlugin::access()
Rule::access in includes/rules.plugins.inc
Whether the currently logged in user has access to all configured elements.
1 method overrides RulesContainerPlugin::access()
Rule::access in includes/rules.plugins.inc
Whether the currently logged in user has access to all configured elements.

File

includes/rules.core.inc, line 2369

Class

RulesContainerPlugin
Base class for ContainerPlugins like Rules, Logical Operations or Loops.

Code

public function access() {
    foreach ($this->children as $key => $child) {
        if (!$child->access()) {
            return FALSE;
        }
    }
    return TRUE;
}