summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-11-07 07:54:35 +0000
committerDries Buytaert <dries@buytaert.net>2004-11-07 07:54:35 +0000
commita16be3495ec75de24083a4c2332ce8d33365b791 (patch)
treef8363066bc395bb3d382c5ba8d1d560d55991f9f
parent1486dc8f92cc5c84f57465529a3ea1bc39e119c1 (diff)
downloadbrdo-a16be3495ec75de24083a4c2332ce8d33365b791.tar.gz
brdo-a16be3495ec75de24083a4c2332ce8d33365b791.tar.bz2
- Patch #12658 by menesis: when an administrator adds a user, the 'authenticated user' role was not assigned to the new user.
-rw-r--r--modules/user.module2
-rw-r--r--modules/user/user.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/user.module b/modules/user.module
index fbaf7ddad..7c5ca77be 100644
--- a/modules/user.module
+++ b/modules/user.module
@@ -1300,7 +1300,7 @@ function user_admin_create($edit = array()) {
if ($edit) {
// Because the admin form doesn't have roles selection they need to be set to validate properly
- $edit['roles'] = array(_user_authenticated_id());
+ $edit['roles'] = array(_user_authenticated_id() => 'authenticated user');
user_module_invoke('validate', $edit, $edit, 'account');
if (!form_get_errors()) {
diff --git a/modules/user/user.module b/modules/user/user.module
index fbaf7ddad..7c5ca77be 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -1300,7 +1300,7 @@ function user_admin_create($edit = array()) {
if ($edit) {
// Because the admin form doesn't have roles selection they need to be set to validate properly
- $edit['roles'] = array(_user_authenticated_id());
+ $edit['roles'] = array(_user_authenticated_id() => 'authenticated user');
user_module_invoke('validate', $edit, $edit, 'account');
if (!form_get_errors()) {