Merge branch 'ent-13294-usuario-limitado-por-perfil-y-acl-ent-no-puede-ver-tools-file-repository' into 'develop'

Ent 13294 usuario limitado por perfil y acl ent no puede ver tools file repository

See merge request artica/pandorafms!7188
This commit is contained in:
Jose Martin 2024-04-12 11:23:34 +00:00
commit 15859745ed
1 changed files with 1 additions and 1 deletions

View File

@ -738,7 +738,7 @@ if ($access_console_node === true) {
$sub['operation/agentes/exportdata']['id'] = 'export_data';
}
if ((bool) check_acl($config['id_user'], 0, 'PM') === true) {
if ((bool) check_acl($config['id_user'], 0, 'PM') === true || enterprise_hook('enterprise_acl', [$config['id_user'], 'tools', 'operation/extensions', false]) === true) {
$sub['godmode/files_repo/files_repo']['text'] = __('File repository');
$sub['godmode/files_repo/files_repo']['id'] = 'file_repository';
}