function user_role_edit_access

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 3124

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');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.