function ctools_ruleset_ctools_access_check

Check for access.

1 string reference to 'ctools_ruleset_ctools_access_check'
ruleset.inc in ctools_access_ruleset/plugins/access/ruleset.inc
Plugin to provide access control based on user rulesetission strings.

File

ctools_access_ruleset/plugins/access/ruleset.inc, line 90

Code

function ctools_ruleset_ctools_access_check($conf, $context, $plugin) {
    // Load up any contexts we might be using.
    $contexts = ctools_context_match_required_contexts($plugin['ruleset']->requiredcontexts, $context);
    $contexts = ctools_context_load_contexts($plugin['ruleset'], FALSE, $contexts);
    return ctools_access($plugin['ruleset']->access, $contexts);
}