parent
df3d81e181
commit
ddd280d57b
|
@ -31,12 +31,14 @@
|
|||
null,
|
||||
array('icon' => 'reply')
|
||||
); ?></div>
|
||||
<?php if ($this->hasPermission('monitoring/command/send-custom-notification')): ?>
|
||||
<div><?= $this->qlink(
|
||||
sprintf($this->translate('Send a custom notification for all %u hosts'), $hostCount),
|
||||
$sendCustomNotificationLink,
|
||||
null,
|
||||
array('icon' => 'comment')
|
||||
); ?></div>
|
||||
<?php endif; ?>
|
||||
<?php if (($unhandledCount = count($unhandledObjects)) > 0): ?>
|
||||
<div>
|
||||
<h3><?= sprintf(
|
||||
|
|
|
@ -31,12 +31,14 @@
|
|||
null,
|
||||
array('icon' => 'reply')
|
||||
); ?></div>
|
||||
<?php if ($this->hasPermission('monitoring/command/send-custom-notification')): ?>
|
||||
<div><?= $this->qlink(
|
||||
sprintf($this->translate('Send a custom notification for all %u services'), $serviceCount),
|
||||
$sendCustomNotificationLink,
|
||||
null,
|
||||
array('icon' => 'comment')
|
||||
); ?></div>
|
||||
<?php endif; ?>
|
||||
<?php if (($unhandledCount = count($unhandledObjects)) > 0): ?>
|
||||
<div>
|
||||
<h3><?= sprintf(
|
||||
|
|
|
@ -55,6 +55,10 @@ $this->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',
|
||||
|
|
Loading…
Reference in New Issue