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:
commit
9f542a42f0
|
@ -31,7 +31,7 @@ global $config;
|
||||||
|
|
||||||
check_login();
|
check_login();
|
||||||
// ACL Check.
|
// 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(
|
db_pandora_audit(
|
||||||
AUDIT_LOG_ACL_VIOLATION,
|
AUDIT_LOG_ACL_VIOLATION,
|
||||||
'Trying to access Module Groups view'
|
'Trying to access Module Groups view'
|
||||||
|
|
|
@ -33,6 +33,15 @@ require_once 'include/config.php';
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
check_login();
|
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_reporting.php';
|
||||||
require_once 'include/functions_tactical.php';
|
require_once 'include/functions_tactical.php';
|
||||||
|
|
Loading…
Reference in New Issue