2014-06-10 Hirofumi Kosaka <kosaka@rworks.jp>
* operation/agentes/ver_agente.php, godmode/massive/massive_delete_modules.php: Fixed bug that all agents' module the user can view could be targets of deletion, if the user has an AW privilege for any. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10151 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
95d574a5c7
commit
13c6786a40
|
@ -1,3 +1,10 @@
|
|||
2014-06-10 Hirofumi Kosaka <kosaka@rworks.jp>
|
||||
|
||||
* operation/agentes/ver_agente.php,
|
||||
godmode/massive/massive_delete_modules.php: Fixed bug that all
|
||||
agents' module the user can view could be targets of deletion,
|
||||
if the user has an AW privilege for any.
|
||||
|
||||
2014-06-09 Alejandro Gallardo <alejandro.gallardo@artica.es>
|
||||
|
||||
* include/functions_api.php: Added the parameter
|
||||
|
|
|
@ -504,6 +504,7 @@ $(document).ready (function () {
|
|||
"recursion" : $("#checkbox-recursion")
|
||||
.attr("checked") ? 1 : 0,
|
||||
"id_group" : this.value,
|
||||
"privilege" : "AW",
|
||||
status_agents: function () {
|
||||
return $("#status_agents").val();
|
||||
},
|
||||
|
|
|
@ -47,6 +47,7 @@ if (is_ajax ()) {
|
|||
$id_group = (int) get_parameter('id_group');
|
||||
$recursion = (int) get_parameter ('recursion', 0);
|
||||
$custom_condition = get_parameter('custom_condition', '');
|
||||
$privilege = (string) get_parameter ('privilege', "AR");
|
||||
|
||||
// Is is possible add keys prefix to avoid auto sorting in js object conversion
|
||||
$keys_prefix = (string) get_parameter ('keys_prefix', '');
|
||||
|
@ -60,8 +61,7 @@ if (is_ajax ()) {
|
|||
}
|
||||
}
|
||||
else {
|
||||
$groups_orig = users_get_groups();
|
||||
|
||||
$groups_orig = users_get_groups(false, $privilege);
|
||||
$groups = array_keys($groups_orig);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue