Fixed ACL errors
This commit is contained in:
parent
391c18ff26
commit
10ee04d610
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue