diff --git a/app/View/Elements/host_browser_menu.ctp b/app/View/Elements/host_browser_menu.ctp index 4afa6fd404..dd30de1f29 100644 --- a/app/View/Elements/host_browser_menu.ctp +++ b/app/View/Elements/host_browser_menu.ctp @@ -24,10 +24,12 @@ // confirmation. ?> - +request->params['action'] == 'browser' && $this->request->params['controller'] == 'hosts'): ?> + - + + Acl->hasPermission('view', 'documentations') && $host['Host']['host_type'] == GENERIC_HOST): ?> -Form->create('nag_command', ['class' => 'pull-left']); -echo $this->Form->input('satellite_id', ['type' => 'hidden', 'value' => $service['Host']['satellite_id']]); ?> - - - -Form->end(); ?> +request->params['action'] == 'browser' && $this->request->params['controller'] == 'services'): ?> + + + + Acl->hasPermission('view', 'documentations') && $service['Service']['service_type'] == GENERIC_SERVICE): ?>
Form->create('nag_command'); echo $this->Form->input('satellite_id', ['type' => 'hidden', 'value' => $service['Host']['satellite_id']]); ?> - Form->end(); ?>