From 25f13a64c407103b2c07d3c6bf68ccecdd5b99ec Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 22 Jan 2006 07:23:58 +0000 Subject: - Patch #45843 by markus: roles are no longer required. --- modules/user/user.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/user/user.module') diff --git a/modules/user/user.module b/modules/user/user.module index c14320529..12405d285 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -1181,7 +1181,7 @@ function user_edit_form($uid, $edit) { $roles = user_roles(1); unset($roles[DRUPAL_AUTHENTICATED_RID]); if ($roles) { - $form['account']['roles'] = array('#type' => 'checkboxes', '#title' => t('Roles'), '#default_value' => array_keys((array)$edit['roles']), '#options' => $roles, '#description' => t('The user receives the combined permissions of the %au role, and all roles selected here.', array('%au' => theme('placeholder', t('authenticated user')))), '#required' => TRUE); + $form['account']['roles'] = array('#type' => 'checkboxes', '#title' => t('Roles'), '#default_value' => array_keys((array)$edit['roles']), '#options' => $roles, '#description' => t('The user receives the combined permissions of the %au role, and all roles selected here.', array('%au' => theme('placeholder', t('authenticated user'))))); } } -- cgit v1.2.3