Fixed problems with acl's. Ticket: #3912
This commit is contained in:
parent
f3b9703242
commit
82b21020f2
|
@ -20,7 +20,7 @@ check_login ();
|
||||||
|
|
||||||
$event_w = check_acl ($config['id_user'], 0, "EW");
|
$event_w = check_acl ($config['id_user'], 0, "EW");
|
||||||
$event_m = check_acl ($config['id_user'], 0, "EM");
|
$event_m = check_acl ($config['id_user'], 0, "EM");
|
||||||
$access = ($event_w == true) ? 'EW' : ($event_m == true) ? 'EM' : 'EW';
|
$access = ($event_w == true) ? 'EW' : (($event_m == true) ? 'EM' : 'EW');
|
||||||
|
|
||||||
if (!$event_w && !$event_m) {
|
if (!$event_w && !$event_m) {
|
||||||
db_pandora_audit("ACL Violation",
|
db_pandora_audit("ACL Violation",
|
||||||
|
|
|
@ -139,7 +139,7 @@ echo "<table width='100%' cellpadding='4' cellpadding='4' class='databox filters
|
||||||
echo "<tr>";
|
echo "<tr>";
|
||||||
echo "<td colspan='3'>".__('Filter group')."</td>";
|
echo "<td colspan='3'>".__('Filter group')."</td>";
|
||||||
echo "</tr><tr>";
|
echo "</tr><tr>";
|
||||||
echo "<td colspan='3'>".html_print_select_groups($config['id_user'], ($report_w == true) ? 'RW' : ($report_m == true) ? 'RM' : 'RW',
|
echo "<td colspan='3'>".html_print_select_groups($config['id_user'], ($report_w == true) ? 'RW' : (($report_m == true) ? 'RM' : 'RW'),
|
||||||
true, 'group', '', 'filterByGroup($(\'#group\').val());',
|
true, 'group', '', 'filterByGroup($(\'#group\').val());',
|
||||||
'', 0, true)."</td>";
|
'', 0, true)."</td>";
|
||||||
echo "</tr><tr>";
|
echo "</tr><tr>";
|
||||||
|
|
|
@ -111,7 +111,7 @@ if ($idAgent != 0) {
|
||||||
else {
|
else {
|
||||||
$agent_a = check_acl ($config['id_user'], 0, "AR");
|
$agent_a = check_acl ($config['id_user'], 0, "AR");
|
||||||
$agent_w = check_acl ($config['id_user'], 0, "AW");
|
$agent_w = check_acl ($config['id_user'], 0, "AW");
|
||||||
$access = ($agent_a == true) ? 'AR' : ($agent_w == true) ? 'AW' : 'AR';
|
$access = ($agent_a == true) ? 'AR' : (($agent_w == true) ? 'AW' : 'AR');
|
||||||
|
|
||||||
if (!$agent_a && !$agent_w) {
|
if (!$agent_a && !$agent_w) {
|
||||||
db_pandora_audit("ACL Violation","Trying to access alert view");
|
db_pandora_audit("ACL Violation","Trying to access alert view");
|
||||||
|
|
|
@ -70,7 +70,7 @@ ui_print_page_header (__("Group view"), "images/group.png", false, "", false, $u
|
||||||
|
|
||||||
$strict_user = db_get_value('strict_acl', 'tusuario', 'id_user', $config['id_user']);
|
$strict_user = db_get_value('strict_acl', 'tusuario', 'id_user', $config['id_user']);
|
||||||
|
|
||||||
$all_data = groupview_status_modules_agents ($config['id_user'], $strict_user, ($agent_a == true) ? 'AR' : ($agent_w == true) ? 'AW' : 'AR', $strict_user);
|
$all_data = groupview_status_modules_agents ($config['id_user'], $strict_user, ($agent_a == true) ? 'AR' : (($agent_w == true) ? 'AW' : 'AR'), $strict_user);
|
||||||
|
|
||||||
$total_agentes = 0;
|
$total_agentes = 0;
|
||||||
$monitor_ok = 0;
|
$monitor_ok = 0;
|
||||||
|
|
Loading…
Reference in New Issue