You are here

function role_delegation_perm in Role Delegation 5

Same name and namespace in other branches
  1. 6 role_delegation.module \role_delegation_perm()

Implementation of hook_perm().

1 call to role_delegation_perm()
role_delegation_menu in ./role_delegation.module
Implementation of hook_menu().

File

./role_delegation.module, line 27
This module allows site administrators to grant some roles the authority to assign selected roles to users, without them needing the 'administer access control' permission.

Code

function role_delegation_perm() {
  $roles = _role_delegation_roles();
  $perms = array(
    'assign all roles',
  );
  foreach ($roles as $role) {
    $perms[] = _role_delegation_make_perm($role);
  }
  return $perms;
}