summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-11-10 08:29:08 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-11-10 08:29:08 +0000
commitf56dd8787801295b55268cbd3a969fc5555f8e15 (patch)
treec0c32e56a9dfa169e8448e1d7c044fd89d7009dc
parent0462d2ebb388660450c88a70bce0b692e061523a (diff)
downloadbrdo-f56dd8787801295b55268cbd3a969fc5555f8e15.tar.gz
brdo-f56dd8787801295b55268cbd3a969fc5555f8e15.tar.bz2
#54167 by Ralf Stamm. Prevent editing the locked roles.
-rw-r--r--modules/user/user.module3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index 7c84c391d..1fe2b14fe 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -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(