Merge branch 'ent-8386-usuario-sin-acceso-a-servidores-ve-icono-con-info-de-servidores' into 'develop'

Do not show servers header icon if user has no permission node

See merge request artica/pandorafms!4723
This commit is contained in:
Daniel Rodriguez 2022-03-09 12:55:31 +00:00
commit 9f7dd951e5
1 changed files with 25 additions and 23 deletions

View File

@ -36,6 +36,7 @@ echo sprintf('<div id="header_table" class="header_table_%s">', $menuTypeClass);
).'</div>';
// ======= Servers List ===============================================
if ((bool) check_acl($config['id_user'], 0, 'AW') !== false) {
$servers_list = '<div id="servers_list">';
$servers = [];
$servers['all'] = (int) db_get_value('COUNT(id_server)', 'tserver');
@ -60,6 +61,7 @@ echo sprintf('<div id="header_table" class="header_table_%s">', $menuTypeClass);
$servers_check_img_link .= '</a>';
};
$servers_list .= $servers_check_img_link.'</div>';
}