- Patch #12658 by menesis: when an administrator adds a user, the 'authenticated user' role was not assigned to the new user.

4.6.x
Dries Buytaert 2004-11-07 07:54:35 +00:00
parent 1486dc8f92
commit a16be3495e
2 changed files with 2 additions and 2 deletions

View File

@ -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()) {

View File

@ -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()) {