2009-03-31 Sancho Lerena <slerena@artica.es>

* operation/events/events.php: Fixed and allow to everybody to see
        events coming from group 0 (Old server code put events here).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1579 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
slerena 2009-03-31 12:06:43 +00:00
parent 9b4f7f05cc
commit 82e457c050
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-03-31 Sancho Lerena <slerena@artica.es>
* operation/events/events.php: Fixed and allow to everybody to see
events coming from group 0 (Old server code put events here).
2009-03-27 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions_db.php: Fixed group functions that would return

View File

@ -100,7 +100,13 @@ $status = (int) get_parameter ("status", 0); // -1 all, 0 only red, 1 only green
$id_agent = (int) get_parameter ("id_agent", -1); //-1 all, 0 system
$id_event = (int) get_parameter ("id_event", -1);
$pagination = (int) get_parameter ("pagination", $config["block_size"]);
$groups = get_user_groups ($config["id_user"], "IR");
// Access rights are about agent data, not incidents !
$groups = get_user_groups ($config["id_user"], "AR");
// Add group "0".
$groups[0]="System";
$event_view_hr = (int) get_parameter ("event_view_hr", $config["event_view_hr"]);
$id_user_ack = get_parameter ("id_user_ack", 0);
$group_rep = (int) get_parameter ("group_rep", 1);
@ -142,6 +148,7 @@ if ($event_view_hr > 0) {
$sql_post .= " AND utimestamp > ".$unixtime;
}
$url = "index.php?sec=eventos&amp;sec2=operation/events/events&amp;search=".rawurlencode($search)."&amp;event_type=".$event_type."&amp;severity=".$severity."&amp;status=".$status."&amp;ev_group=".$ev_group."&amp;refr=".$config["refr"]."&amp;id_agent=".$id_agent."&amp;id_event=".$id_event."&amp;pagination=".$pagination."&amp;group_rep=".$group_rep."&amp;event_view_hr=".$event_view_hr."&amp;id_user_ack=".$id_user_ack;
echo "<h2>".__('Events')." &gt; ".__('Main event view'). "&nbsp;";