Commit f56dd878 authored by drumm's avatar drumm
Browse files

#54167 by Ralf Stamm. Prevent editing the locked roles.

parent 0462d2eb
......@@ -1905,6 +1905,9 @@ function user_admin_role() {
}
}
if ($id) {
if (DRUPAL_ANONYMOUS_RID == $id || DRUPAL_AUTHENTICATED_RID == $id) {
drupal_goto('admin/user/roles');
}
// Display the edit role form.
$role = db_fetch_object(db_query('SELECT * FROM {role} WHERE rid = %d', $id));
$form['name'] = array(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment