Merge branch 'ent-11317-fallo-al-loguear-con-usuario-solo-informes' into 'develop'

Ent 11317 fallo al loguear con usuario solo informes

See merge request artica/pandorafms!5942
This commit is contained in:
Diego Muñoz-Reja 2023-05-25 15:23:33 +00:00
commit 9f542a42f0
2 changed files with 10 additions and 1 deletions

View File

@ -31,7 +31,7 @@ global $config;
check_login();
// ACL Check.
if (!check_acl($config['id_user'], 0, 'AR')) {
if (check_acl($config['id_user'], 0, 'AR') === 0 && check_acl($config['id_user'], 0, 'RR') === 0) {
db_pandora_audit(
AUDIT_LOG_ACL_VIOLATION,
'Trying to access Module Groups view'

View File

@ -33,6 +33,15 @@ require_once 'include/config.php';
global $config;
check_login();
// ACL Check.
if (check_acl($config['id_user'], 0, 'AR') === 0) {
db_pandora_audit(
AUDIT_LOG_ACL_VIOLATION,
'Trying to access Default view'
);
include 'general/noaccess.php';
exit;
}
require_once 'include/functions_reporting.php';
require_once 'include/functions_tactical.php';