You are here

function ctools_ruleset_ctools_access_check in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 ctools_access_ruleset/plugins/access/ruleset.inc \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
Plugin to provide access control based on user rulesetission strings.

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);
}