- Patch #12658 by menesis: when an administrator adds a user, the 'authenticated user' role was not assigned to the new user.
parent
1486dc8f92
commit
a16be3495e
|
@ -1300,7 +1300,7 @@ function user_admin_create($edit = array()) {
|
||||||
|
|
||||||
if ($edit) {
|
if ($edit) {
|
||||||
// Because the admin form doesn't have roles selection they need to be set to validate properly
|
// 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');
|
user_module_invoke('validate', $edit, $edit, 'account');
|
||||||
|
|
||||||
if (!form_get_errors()) {
|
if (!form_get_errors()) {
|
||||||
|
|
|
@ -1300,7 +1300,7 @@ function user_admin_create($edit = array()) {
|
||||||
|
|
||||||
if ($edit) {
|
if ($edit) {
|
||||||
// Because the admin form doesn't have roles selection they need to be set to validate properly
|
// 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');
|
user_module_invoke('validate', $edit, $edit, 'account');
|
||||||
|
|
||||||
if (!form_get_errors()) {
|
if (!form_get_errors()) {
|
||||||
|
|
Loading…
Reference in New Issue