From 28b202825b3c47041b0d6dc7ff29e11fbc13becb Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Fri, 6 Jul 2012 09:11:10 +0000 Subject: [PATCH] 2012-07-06 Sergio Martin * godmode/users/configure_user.php: Added wizard access option to users editor git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6745 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ .../godmode/users/configure_user.php | 21 ++++++++++++++++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 8bec6205aa..e498c9e424 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2012-07-06 Sergio Martin + + * godmode/users/configure_user.php: Added wizard access + option to users editor + 2012-07-05 Sergio Martin * pandoradb_data.sql diff --git a/pandora_console/godmode/users/configure_user.php b/pandora_console/godmode/users/configure_user.php index 2a86862924..f60e9cf101 100644 --- a/pandora_console/godmode/users/configure_user.php +++ b/pandora_console/godmode/users/configure_user.php @@ -130,9 +130,10 @@ if ($create_user) { $values['block_size'] = (int) get_parameter ('block_size', $config["block_size"]); $values['flash_chart'] = (int) get_parameter ('flash_charts', $config["flash_charts"]); - if (defined('PANDORA_ENTERPRISE')) { + if (enterprise_installed()) { $values['force_change_pass'] = 1; $values['last_pass_change'] = date ("Y/m/d H:i:s", get_system_time()); + $values['wizard_access'] = get_parameter ('wizard_access'); } if ($id == '') { @@ -224,6 +225,10 @@ if ($update_user) { $values['block_size'] = get_parameter ('block_size', $config["block_size"]); $values['flash_chart'] = get_parameter ('flash_charts', $config["flash_charts"]); + if(enterprise_installed()) { + $values['wizard_access'] = get_parameter ('wizard_access'); + } + $res1 = update_user ($id, $values); if ($config['user_can_update_password']) { @@ -270,6 +275,10 @@ if ($update_user) { $info .= ' Skin: ' . $values['id_skin']; } + if(enterprise_installed()) { + $info .= ' Wizard access: ' . $values['wizard_access']; + } + db_pandora_audit("User management", "Updated user ".io_safe_input($id), false, false, $info); @@ -414,6 +423,16 @@ if($id == $config['id_user']) { $table->data[12][1] .= html_print_input_hidden('quick_language_change', 1, true); } +if(enterprise_installed()) { + $table->data[12][0] = __('Wizard access'); + $wizard_accesses = array('only_console' => __('No wizard access (Only normal console)'), + 'basic' => __('Basic wizard'), + 'advanced' => __('Advanced wizard'), + 'custom' => __('Custom wizard'), + 'all' => __('Full access (Custom wizard and normal console)')); + $table->data[12][1] = html_print_select($wizard_accesses,'wizard_access',$user_info["wizard_access"],'','',-1,true, false, false); +} + echo '
'; html_print_table ($table);