Fixed ACL errors

This commit is contained in:
Alejandro Gallardo Escobar 2014-10-16 12:21:59 +02:00
parent 391c18ff26
commit 10ee04d610
1 changed files with 2 additions and 8 deletions

View File

@ -140,19 +140,13 @@ if (!$id_report) {
$report = db_get_row ('treport', 'id_report', $id_report); $report = db_get_row ('treport', 'id_report', $id_report);
$report["datetime"] = get_system_time(); if (empty($report) || ! check_acl ($config['id_user'], $report['id_group'], "RR")) {
if (! check_acl ($config['id_user'], $report['id_group'], "AR")) {
db_pandora_audit("ACL Violation","Trying to access graph reader"); db_pandora_audit("ACL Violation","Trying to access graph reader");
include ("general/noaccess.php"); include ("general/noaccess.php");
exit; exit;
} }
if ($report['id_group'] != 0 && $report["datetime"] = get_system_time();
!is_user_admin ($config['id_user'])) {
include ("general/noaccess.php");
return;
}
header ('Content-type: application/xml; charset="utf-8"', true); header ('Content-type: application/xml; charset="utf-8"', true);