Index: user.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/user/user.module,v
retrieving revision 1.670
diff -u -p -r1.670 user.module
--- user.module	1 Sep 2006 07:32:58 -0000	1.670
+++ user.module	4 Sep 2006 21:50:44 -0000
@@ -1903,6 +1903,9 @@ function user_admin_role() {
   }
   else if ($id) {
     // Display the role form.
+    if (in_array($id, array(DRUPAL_ANONYMOUS_RID, DRUPAL_AUTHENTICATED_RID))) {
+      drupal_goto('admin/user/roles');
+    }
     $role = db_fetch_object(db_query('SELECT * FROM {role} WHERE rid = %d', $id));
     $form['name'] = array('#type' => 'textfield', '#title' => t('Role name'), '#default_value' => $role->name, '#size' => 30, '#maxlength' => 64, '#description' => t('The name for this role. Example: "moderator", "editorial board", "site architect".'));
     $form['submit'] = array('#type' => 'submit', '#value' => t('Save role'));
