You are here

function role_delegation_delegate_roles_action in Role Delegation 7

File

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

Code

function role_delegation_delegate_roles_action(&$user, $context) {
  $roles_current = $user->roles;
  $roles_change = $context['roles_change'];
  role_delegation_save(array(
    $user->uid,
  ), $roles_change);
}