#13150 hide omnishell

This commit is contained in:
Jonathan 2024-03-25 09:20:00 +01:00
parent e7fefdebe9
commit 752aa71ecf
2 changed files with 2 additions and 3 deletions

View File

@ -538,7 +538,7 @@ if ((bool) check_acl($config['id_user'], 0, 'PM') === true || (bool) check_acl($
$sub['godmode/setup/links']['id'] = 'links';
$sub['tools/diagnostics']['text'] = __('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']['id'] = 'site_news';
}

View File

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