You are here

function content_access_get_permission_access in Content Access 5

Same name and namespace in other branches
  1. 8 content_access.module \content_access_get_permission_access()
  2. 6 content_access.module \content_access_get_permission_access()
  3. 7 content_access.module \content_access_get_permission_access()
2 calls to content_access_get_permission_access()
content_access_get_setting_defaults in ./content_access.module
content_access_optimize_grants in ./content_access.module

File

./content_access.module, line 444

Code

function content_access_get_permission_access($perm) {
  static $roles = array();
  if (!isset($roles[$perm])) {
    $roles[$perm] = array_keys(user_roles(0, $perm));
  }
  return $roles[$perm];
}