mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Fixed for group All
This commit is contained in:
parent
6f25c229e3
commit
4f23407ea8
@ -114,19 +114,9 @@ $alias = db_get_value ("alias","tagente","id_agente",$id_agent);
|
|||||||
// ACL
|
// ACL
|
||||||
$permission = false;
|
$permission = false;
|
||||||
$agent_group = (int) agents_get_agent_group($agent_id);
|
$agent_group = (int) agents_get_agent_group($agent_id);
|
||||||
$strict_user = (bool) db_get_value("strict_acl", "tusuario",
|
$permission = check_acl($config['id_user'], $agent_group, "AR");
|
||||||
"id_user", $config['id_user']);
|
|
||||||
|
if (!$permission) {
|
||||||
if (!empty($agent_group)) {
|
|
||||||
if ($strict_user) {
|
|
||||||
$permission = tags_check_acl_by_module($id, $config['id_user'], 'RR') === true;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$permission = check_acl($config['id_user'], $agent_group, "RR");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!$permission) {
|
|
||||||
require ($config['homedir'] . "/general/noaccess.php");
|
require ($config['homedir'] . "/general/noaccess.php");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user