Merge branch 'ent-13150-ocultar-seccion-de-omnishell' into 'develop'

Ent 13150 ocultar seccion de omnishell

See merge request artica/pandorafms!7075
This commit is contained in:
Rafael Ameijeiras 2024-03-27 08:40:53 +00:00
commit 9ef311cd84
2 changed files with 2 additions and 3 deletions

View File

@ -536,7 +536,7 @@ if ((bool) check_acl($config['id_user'], 0, 'PM') === true || (bool) check_acl($
$sub['godmode/setup/links']['id'] = 'links'; $sub['godmode/setup/links']['id'] = 'links';
$sub['tools/diagnostics']['text'] = __('Diagnostic info'); $sub['tools/diagnostics']['text'] = __('Diagnostic info');
$sub['tools/diagnostics']['id'] = 'diagnostic_info'; $sub['tools/diagnostics']['id'] = 'diagnostic_info';
enterprise_hook('omnishell'); // enterprise_hook('omnishell');
$sub['godmode/setup/news']['text'] = __('Site news'); $sub['godmode/setup/news']['text'] = __('Site news');
$sub['godmode/setup/news']['id'] = 'site_news'; $sub['godmode/setup/news']['id'] = 'site_news';
} }

View File

@ -1655,8 +1655,7 @@ if ($policyTab === ENTERPRISE_NOT_HOOK) {
} }
// Omnishell. // Omnishell.
$tasks = enterprise_hook('count_tasks_agent', [$id_agente]); // $tasks = enterprise_hook('count_tasks_agent', [$id_agente]);
if ($tasks === true) { if ($tasks === true) {
$omnishellTab = enterprise_hook('omnishell_tab'); $omnishellTab = enterprise_hook('omnishell_tab');
if ($omnishellTab == -1) { if ($omnishellTab == -1) {