diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index feac34e9b6..cd4f469886 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2009-11-03 Miguel de Dios + * godmode/users/configure_user.php: fix to set the admin user when + you create new user. + 2009-11-03 Miguel de Dios * DEBIAN/make_deb_package.sh: move the script to make the deb package into the DEBIAN and change some things into the sourcecode for the directory diff --git a/pandora_console/godmode/users/configure_user.php b/pandora_console/godmode/users/configure_user.php index a36a670252..be7db5513c 100644 --- a/pandora_console/godmode/users/configure_user.php +++ b/pandora_console/godmode/users/configure_user.php @@ -68,7 +68,7 @@ if ($create_user) { $values['email'] = (string) get_parameter ('email'); $values['phone'] = (string) get_parameter ('phone'); $values['comments'] = (string) get_parameter ('comments'); - $is_admin = (bool) get_parameter ('is_admin', 0); + $values['is_admin'] = $is_admin = (bool) get_parameter ('is_admin', 0); if ($password_new == '') { print_error_message (__('Passwords cannot be empty')); @@ -76,13 +76,15 @@ if ($create_user) { $password_new = ''; $password_confirm = ''; $new_user = true; - } elseif ($password_new != $password_confirm) { + } + elseif ($password_new != $password_confirm) { print_error_message (__('Passwords didn\'t match')); $user_info = $values; $password_new = ''; $password_confirm = ''; $new_user = true; - } else { + } + else { $result = create_user ($id, $password_new, $values); print_result_message ($result, __('Successfully created'),