function user_role_delete_access

Menu access callback for user role deletion.

1 string reference to 'user_role_delete_access'
user_menu in drupal/core/modules/user/user.module
Implements hook_menu().

File

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

Code

function user_role_delete_access($role) {

  // Prevent the system-defined roles from being removed.
  if ($role->rid == DRUPAL_ANONYMOUS_RID || $role->rid == DRUPAL_AUTHENTICATED_RID) {
    return FALSE;
  }
  return user_access('administer permissions');
}