mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
2014-06-06 Hirofumi Kosaka <kosaka@rworks.jp>
* godmode/massive/massive_copy_modules.php, godmode/massive/massive_delete_modules.php: Fixed bug that all agents the user can view could be targets of the operation, if the user has an AW privilege for any. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10129 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
450b5fe324
commit
c8083656ce
@ -1,3 +1,10 @@
|
|||||||
|
2014-06-06 Hirofumi Kosaka <kosaka@rworks.jp>
|
||||||
|
|
||||||
|
* godmode/massive/massive_copy_modules.php,
|
||||||
|
godmode/massive/massive_delete_modules.php: Fixed bug that all
|
||||||
|
agents the user can view could be targets of the operation, if
|
||||||
|
the user has an AW privilege for any.
|
||||||
|
|
||||||
2014-06-06 Alejandro Gallardo <alejandro.gallardo@artica.es>
|
2014-06-06 Alejandro Gallardo <alejandro.gallardo@artica.es>
|
||||||
|
|
||||||
* include/functions_snmp_browser.php: Fixed an error.
|
* include/functions_snmp_browser.php: Fixed an error.
|
||||||
|
@ -67,7 +67,7 @@ $table->style[6] = 'font-weight: bold';
|
|||||||
/* Source selection */
|
/* Source selection */
|
||||||
$table->id = 'source_table';
|
$table->id = 'source_table';
|
||||||
$table->data[0][0] = __('Group');
|
$table->data[0][0] = __('Group');
|
||||||
$table->data[0][1] = html_print_select_groups(false, "AR", true, 'source_id_group', $source_id_group,
|
$table->data[0][1] = html_print_select_groups(false, "AW", true, 'source_id_group', $source_id_group,
|
||||||
false, '', '', true);
|
false, '', '', true);
|
||||||
$table->data[0][2] = __('Group recursion');
|
$table->data[0][2] = __('Group recursion');
|
||||||
$table->data[0][3] = html_print_checkbox ("source_recursion", 1, $source_recursion, true, false);
|
$table->data[0][3] = html_print_checkbox ("source_recursion", 1, $source_recursion, true, false);
|
||||||
@ -85,8 +85,12 @@ $table->data[0][6] = __('Agent');
|
|||||||
$table->data[0][6] .= ' <span id="source_agent_loading" class="invisible">';
|
$table->data[0][6] .= ' <span id="source_agent_loading" class="invisible">';
|
||||||
$table->data[0][6] .= html_print_image ("images/spinner.png", true);
|
$table->data[0][6] .= html_print_image ("images/spinner.png", true);
|
||||||
$table->data[0][6] .= '</span>';
|
$table->data[0][6] .= '</span>';
|
||||||
$table->data[0][7] = html_print_select (agents_get_group_agents ($source_id_group, false, "none"),
|
// $table->data[0][7] = html_print_select (agents_get_group_agents ($source_id_group, false, "none"),
|
||||||
'source_id_agent', $source_id_agent, false, __('Select'), 0, true);
|
// 'source_id_agent', $source_id_agent, false, __('Select'), 0, true);
|
||||||
|
$agents = ( $source_id_group ?
|
||||||
|
agents_get_group_agents ($source_id_group, false, "none") :
|
||||||
|
agents_get_group_agents (array_keys (users_get_groups ($config["id_user"], "AW", false))) );
|
||||||
|
$table->data[0][7] = html_print_select ($agents, 'source_id_agent', $source_id_agent, false, __('Select'), 0, true);
|
||||||
|
|
||||||
echo '<form action="index.php?sec=gmassive&sec2=godmode/massive/massive_operations&option=copy_modules" id="manage_config_form" method="post">';
|
echo '<form action="index.php?sec=gmassive&sec2=godmode/massive/massive_operations&option=copy_modules" id="manage_config_form" method="post">';
|
||||||
|
|
||||||
@ -164,7 +168,7 @@ $table->size[1] = '30%';
|
|||||||
$table->size[2] = '20%';
|
$table->size[2] = '20%';
|
||||||
$table->size[3] = '30%';
|
$table->size[3] = '30%';
|
||||||
$table->data[0][0] = __('Group');
|
$table->data[0][0] = __('Group');
|
||||||
$table->data[0][1] = html_print_select ($groups, 'destiny_id_group',
|
$table->data[0][1] = html_print_select_groups(false, "AW", true, 'destiny_id_group',
|
||||||
$destiny_id_group, false, '', '', true);
|
$destiny_id_group, false, '', '', true);
|
||||||
$table->data[0][2] = __('Group recursion');
|
$table->data[0][2] = __('Group recursion');
|
||||||
$table->data[0][3] = html_print_checkbox ("destiny_recursion", 1,
|
$table->data[0][3] = html_print_checkbox ("destiny_recursion", 1,
|
||||||
@ -183,8 +187,10 @@ $table->data[2][0] = __('Agent');
|
|||||||
$table->data[2][0] .= '<span id="destiny_agent_loading" class="invisible">';
|
$table->data[2][0] .= '<span id="destiny_agent_loading" class="invisible">';
|
||||||
$table->data[2][0] .= html_print_image ("images/spinner.png", true);
|
$table->data[2][0] .= html_print_image ("images/spinner.png", true);
|
||||||
$table->data[2][0] .= '</span>';
|
$table->data[2][0] .= '</span>';
|
||||||
$table->data[2][1] = html_print_select (agents_get_group_agents ($destiny_id_group, false, "none"),
|
$agents = ( $destiny_id_group ?
|
||||||
'destiny_id_agent[]', 0, false, '', '', true, true);
|
agents_get_group_agents ($destiny_id_group, false, "none") :
|
||||||
|
agents_get_group_agents (array_keys (users_get_groups ($config["id_user"], "AW", false))) );
|
||||||
|
$table->data[2][1] = html_print_select ($agents, 'destiny_id_agent[]', 0, false, '', '', true, true);
|
||||||
|
|
||||||
echo '<fieldset id="fieldset_destiny"' .
|
echo '<fieldset id="fieldset_destiny"' .
|
||||||
($source_id_agent ? '' : ' class="invisible"') . '>';
|
($source_id_agent ? '' : ' class="invisible"') . '>';
|
||||||
@ -217,6 +223,7 @@ $(document).ready (function () {
|
|||||||
|
|
||||||
$("#source_id_group").pandoraSelectGroupAgent ({
|
$("#source_id_group").pandoraSelectGroupAgent ({
|
||||||
agentSelect: "select#source_id_agent",
|
agentSelect: "select#source_id_agent",
|
||||||
|
privilege: "AW",
|
||||||
recursion: function() {
|
recursion: function() {
|
||||||
return source_recursion
|
return source_recursion
|
||||||
},
|
},
|
||||||
@ -238,6 +245,7 @@ $(document).ready (function () {
|
|||||||
|
|
||||||
$("#destiny_id_group").pandoraSelectGroupAgent ({
|
$("#destiny_id_group").pandoraSelectGroupAgent ({
|
||||||
agentSelect: "select#destiny_id_agent",
|
agentSelect: "select#destiny_id_agent",
|
||||||
|
privilege: "AW",
|
||||||
recursion: function() {return destiny_recursion},
|
recursion: function() {return destiny_recursion},
|
||||||
status_agents: function () {
|
status_agents: function () {
|
||||||
return $("#status_agents_destiny").val();
|
return $("#status_agents_destiny").val();
|
||||||
|
@ -276,7 +276,7 @@ foreach ($names as $name) {
|
|||||||
|
|
||||||
$table->rowclass['form_agents_1'] = 'select_agents_row';
|
$table->rowclass['form_agents_1'] = 'select_agents_row';
|
||||||
$table->data['form_agents_1'][0] = __('Agent group');
|
$table->data['form_agents_1'][0] = __('Agent group');
|
||||||
$groups = groups_get_all(true);
|
$groups = users_get_groups ($config["id_user"], "AW", false);
|
||||||
$groups[0] = __('All');
|
$groups[0] = __('All');
|
||||||
$table->colspan['form_agents_1'][1] = 2;
|
$table->colspan['form_agents_1'][1] = 2;
|
||||||
$table->data['form_agents_1'][1] = html_print_select ($groups, 'groups_select',
|
$table->data['form_agents_1'][1] = html_print_select ($groups, 'groups_select',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user