2007-06-12 Sancho Lerena <slerena@artica.es>

* operation/reporting/reporting_viewer.php: Solved problems with ACL.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@508 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
slerena 2007-06-12 18:30:19 +00:00
parent 69c1f9370c
commit 5b2b5a2e78
2 changed files with 202 additions and 195 deletions

View File

@ -1,5 +1,7 @@
2007-06-12 Sancho Lerena <slerena@artica.es>
* operation/reporting/reporting_viewer.php: Solved problems with ACL.
* operation/reporting/graph_viewer.php: ACL to delete graph
* include/functions_reporting.php: Added event reporting and alert

View File

@ -27,8 +27,8 @@ if (comprueba_login() != 0) {
exit;
}
if ((give_acl($id_user,0,"AW") != 1 ) AND (dame_admin($id_user)!=1)) {
audit_db($id_usuario,$REMOTE_ADDR, "ACL Violation","Trying to access graph builder");
if ((give_acl($id_user,0,"AR") != 1 ) AND (dame_admin($id_user)!=1)) {
audit_db($id_user,$REMOTE_ADDR, "ACL Violation","Trying to access graph builder");
include ("general/noaccess.php");
exit;
}
@ -45,6 +45,9 @@ require ("include/functions_reporting.php");
$report_name = give_db_value ("name", "treport", "id_report", $id_report);
$report_description = give_db_value ("description", "treport", "id_report", $id_report);
$report_private= give_db_value ("private", "treport", "id_report", $id_report);
$report_user = give_db_value ("id_user", "treport", "id_report", $id_report);
if (($report_user == $id_user) OR (dame_admin($id_user)==1) OR ($report_private == 0)) {
//echo "SLA for Tato: %".return_module_SLA (50, 604800, 1, 1);
echo "<h1>".$lang_label["custom_reporting"]." - ".$report_name."</h1>";
@ -246,4 +249,6 @@ while ($row = mysql_fetch_array($res)){
}
}
echo "</table>";
}
?>