Hide test button and setup in ITSM pandora_enterprise#12243

This commit is contained in:
daniel 2023-11-06 13:06:38 +01:00
parent 96d8fe33f3
commit f71479033d
2 changed files with 6 additions and 2 deletions

View File

@ -187,7 +187,8 @@ $button_test .= '&nbsp;<span id="ITSM-message" class="invisible"></span>';
$row['control'] = html_print_label_input_block(
__('Test connection pandora to ITSM'),
$button_test
$button_test,
['div_class' => 'ITSM-remote-setup-ITSM_token']
);
$table_remote->data['ITSM_test'] = $row;

View File

@ -1120,7 +1120,10 @@ class Manager
}
$onheader = [];
$onheader['configure'] = $setup_tab;
if (users_is_admin() === true) {
$onheader['configure'] = $setup_tab;
}
$onheader['dashboard'] = $dashboard_tab;
$onheader['list'] = $list_tab;
if ($idIncidence !== 0) {