1 user.module user_role_delete_access($role)

Menu access callback for deleting a user.

File

core/modules/user/user.module, line 2558
Enables the user registration and login system.

Code

function user_role_delete_access($role) {
  // Prevent the system-defined roles from being removed.
  if ($role->name == BACKDROP_ANONYMOUS_ROLE || $role->name == BACKDROP_AUTHENTICATED_ROLE) {
    return FALSE;
  }

  return user_access('administer permissions');
}