From 3202ae577ed36f6cd0964977d008ccc29be8b73e Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Thu, 22 Sep 2016 09:09:49 +0200 Subject: [PATCH] add lost lines of fixed old problem. Ticket: #3912 (cherry picked from commit 5c1fd7f962f0e6c7b20e0ed75e40ee8449852d44) --- .../godmode/users/configure_profile.php | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/pandora_console/godmode/users/configure_profile.php b/pandora_console/godmode/users/configure_profile.php index 4552537665..9e71de2399 100644 --- a/pandora_console/godmode/users/configure_profile.php +++ b/pandora_console/godmode/users/configure_profile.php @@ -250,13 +250,13 @@ if ($id_profile || $new_profile) { $row['input'] = html_print_checkbox ('agent_view', 1, $agent_view, true); $table->data['AR'] = $row; $row = array(); - $row['name'] = __('Edit agents'); - $row['input'] = html_print_checkbox ('agent_edit', 1, $agent_edit, true, false, 'autoclick_profile_users(\'agent_view\', \'false\')'); - $table->data['AW'] = $row; - $row = array(); $row['name'] = __('Disable agents'); - $row['input'] = html_print_checkbox ('agent_disable', 1, $agent_disable, true, false, 'autoclick_profile_users(\'agent_view\', \'agent_edit\')'); + $row['input'] = html_print_checkbox ('agent_disable', 1, $agent_disable, true); $table->data['AD'] = $row; + $row = array(); + $row['name'] = __('Edit agents'); + $row['input'] = html_print_checkbox ('agent_edit', 1, $agent_edit, true, false, 'autoclick_profile_users(\'agent_edit\',\'agent_view\', \'agent_disable\')'); + $table->data['AW'] = $row; $table->data[] = '
'; // Alerts @@ -266,7 +266,7 @@ if ($id_profile || $new_profile) { $table->data['LW'] = $row; $row = array(); $row['name'] = __('Manage alerts'); - $row['input'] = html_print_checkbox ('alert_management', 1, $alert_management, true, false, 'autoclick_profile_users(\'alert_edit\', \'false\')'); + $row['input'] = html_print_checkbox ('alert_management', 1, $alert_management, true, false, 'autoclick_profile_users(\'alert_management\', \'alert_edit\', \'false\')'); $table->data['LM'] = $row; $table->data[] = '
'; @@ -277,11 +277,11 @@ if ($id_profile || $new_profile) { $table->data['ER'] = $row; $row = array(); $row['name'] = __('Edit events'); - $row['input'] = html_print_checkbox ('event_edit', 1, $event_edit, true, false, 'autoclick_profile_users(\'event_view\', \'false\')'); + $row['input'] = html_print_checkbox ('event_edit', 1, $event_edit, true, false, 'autoclick_profile_users(\'event_edit\', \'event_view\', \'false\')'); $table->data['EW'] = $row; $row = array(); $row['name'] = __('Manage events'); - $row['input'] = html_print_checkbox ('event_management', 1, $event_management, true, false, 'autoclick_profile_users(\'event_view\', \'event_edit\')'); + $row['input'] = html_print_checkbox ('event_management', 1, $event_management, true, false, 'autoclick_profile_users(\'event_management\', \'event_view\', \'event_edit\')'); $table->data['EM'] = $row; $table->data[] = '
'; @@ -292,11 +292,11 @@ if ($id_profile || $new_profile) { $table->data['RR'] = $row; $row = array(); $row['name'] = __('Edit reports'); - $row['input'] = html_print_checkbox ('report_edit', 1, $report_edit, true, false, 'autoclick_profile_users(\'report_view\', \'false\')'); + $row['input'] = html_print_checkbox ('report_edit', 1, $report_edit, true, false, 'autoclick_profile_users(\'report_edit\', \'report_view\', \'false\')'); $table->data['RW'] = $row; $row = array(); $row['name'] = __('Manage reports'); - $row['input'] = html_print_checkbox ('report_management', 1, $report_management, true, false, 'autoclick_profile_users(\'report_view\', \'report_edit\')'); + $row['input'] = html_print_checkbox ('report_management', 1, $report_management, true, false, 'autoclick_profile_users(\'report_management\', \'report_view\', \'report_edit\')'); $table->data['RM'] = $row; $table->data[] = '
'; @@ -307,11 +307,11 @@ if ($id_profile || $new_profile) { $table->data['MR'] = $row; $row = array(); $row['name'] = __('Edit network maps'); - $row['input'] = html_print_checkbox ('map_edit', 1, $map_edit, true, false, 'autoclick_profile_users(\'map_view\', \'false\')'); + $row['input'] = html_print_checkbox ('map_edit', 1, $map_edit, true, false, 'autoclick_profile_users(\'map_edit\', \'map_view\', \'false\')'); $table->data['MW'] = $row; $row = array(); $row['name'] = __('Manage network maps'); - $row['input'] = html_print_checkbox ('map_management', 1, $map_management, true, false, 'autoclick_profile_users(\'map_view\', \'map_edit\')'); + $row['input'] = html_print_checkbox ('map_management', 1, $map_management, true, false, 'autoclick_profile_users(\'map_management\', \'map_view\', \'map_edit\')'); $table->data['MM'] = $row; $table->data[] = '
'; @@ -322,11 +322,11 @@ if ($id_profile || $new_profile) { $table->data['VR'] = $row; $row = array(); $row['name'] = __('Edit visual console'); - $row['input'] = html_print_checkbox ('vconsole_edit', 1, $vconsole_edit, true, false, 'autoclick_profile_users(\'vconsole_view\', \'false\')'); + $row['input'] = html_print_checkbox ('vconsole_edit', 1, $vconsole_edit, true, false, 'autoclick_profile_users(\'vconsole_edit\', \'vconsole_view\', \'false\')'); $table->data['VW'] = $row; $row = array(); $row['name'] = __('Manage visual console'); - $row['input'] = html_print_checkbox ('vconsole_management', 1, $vconsole_management, true, false, 'autoclick_profile_users(\'vconsole_view\', \'vconsole_edit\')'); + $row['input'] = html_print_checkbox ('vconsole_management', 1, $vconsole_management, true, false, 'autoclick_profile_users(\'vconsole_management\', \'vconsole_view\', \'vconsole_edit\')'); $table->data['VM'] = $row; $table->data[] = '
'; @@ -337,11 +337,11 @@ if ($id_profile || $new_profile) { $table->data['IR'] = $row; $row = array(); $row['name'] = __('Edit incidents'); - $row['input'] = html_print_checkbox ('incident_edit', 1, $incident_edit, true, false, 'autoclick_profile_users(\'incident_view\', \'false\')'); + $row['input'] = html_print_checkbox ('incident_edit', 1, $incident_edit, true, false, 'autoclick_profile_users(\'incident_edit\', \'incident_view\', \'false\')'); $table->data['IW'] = $row; $row = array(); $row['name'] = __('Manage incidents'); - $row['input'] = html_print_checkbox ('incident_management', 1, $incident_management, true, false, 'autoclick_profile_users(\'incident_view\', \'incident_edit\');'); + $row['input'] = html_print_checkbox ('incident_management', 1, $incident_management, true, false, 'autoclick_profile_users(\'incident_management\', \'incident_view\', \'incident_edit\');'); $table->data['IM'] = $row; $table->data[] = '
';