2010-05-14 Miguel de Dios <miguel.dedios@artica.es>

* godmode/groups/group_list.php: fixed the request of group data when get
	data about "All" group.
	Fixes: #2993501



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2730 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2010-05-14 10:36:19 +00:00
parent cb392f83bd
commit 0fecb4c483
2 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2010-05-14 Miguel de Dios <miguel.dedios@artica.es>
* godmode/groups/group_list.php: fixed the request of group data when get
data about "All" group.
Fixes: #2993501
2010-05-14 Sergio Martin <sergio.martin@artica.es>
* godmode/reporting/visual_console_builder.php: Fixed

View File

@ -33,6 +33,18 @@ if (is_ajax ()) {
if ($get_group_json) {
$id_group = (int) get_parameter ('id_group');
if ($id_group == 0) {
$group = array('id_grupo' => 0,
'nombre' => 'All',
'icon' => 'world',
'parent' => 0,
'disabled' => 0,
'custom_id' => null);
echo json_encode ($group);
return;
}
if (! give_acl ($config['id_user'], $id_group, "AR")) {
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
"Trying to access Alert Management");