Merge branch 'ent-6946-bug-en-usuario-con-perfil-group-coordinator-meta' into 'develop'

fixed error with group cordinator profile with agent management meta

See merge request artica/pandorafms!3842
This commit is contained in:
Daniel Rodriguez 2021-03-02 12:48:16 +00:00
commit 532c04db39
1 changed files with 10 additions and 1 deletions

View File

@ -251,7 +251,16 @@ if (is_ajax()) {
$tab = (string) get_parameter('tab', 'groups');
if ($tab != 'credbox' && ! check_acl($config['id_user'], 0, 'PM')) {
if ($tab != 'credbox' && ! check_acl(
$config['id_user'],
0,
'PM'
) && ! check_acl(
$config['id_user'],
0,
'AW'
)
) {
db_pandora_audit(
'ACL Violation',
'Trying to access Group Management'