You are here

function user_role_edit_access in Drupal 7

Menu access callback for user role editing.

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

File

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

Code

function user_role_edit_access($role) {

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