diff --git a/modules/monitoring/application/views/scripts/hosts/show.phtml b/modules/monitoring/application/views/scripts/hosts/show.phtml index e79fb00eb..5c00cf827 100644 --- a/modules/monitoring/application/views/scripts/hosts/show.phtml +++ b/modules/monitoring/application/views/scripts/hosts/show.phtml @@ -31,12 +31,14 @@ null, array('icon' => 'reply') ); ?> + hasPermission('monitoring/command/send-custom-notification')): ?>
qlink( sprintf($this->translate('Send a custom notification for all %u hosts'), $hostCount), $sendCustomNotificationLink, null, array('icon' => 'comment') ); ?>
+ 0): ?>

'reply') ); ?>

+ hasPermission('monitoring/command/send-custom-notification')): ?>
qlink( sprintf($this->translate('Send a custom notification for all %u services'), $serviceCount), $sendCustomNotificationLink, null, array('icon' => 'comment') ); ?>
+ 0): ?>

providePermission( 'monitoring/command/feature/object', $this->translate('Allow processing commands for toggling features on host and service objects') ); +$this->providesPermission( + 'monitoring/command/send-custom-notification', + $this->translate('Allow sending custom notifications for hosts and services'); +); $this->provideRestriction( 'monitoring/hosts/filter',