Security: Require permissions for executing common host commands
This commit is contained in:
parent
9b7e75a616
commit
44718e5012
|
@ -47,6 +47,8 @@ class Monitoring_HostController extends MonitoredObjectController
|
|||
*/
|
||||
public function acknowledgeProblemAction()
|
||||
{
|
||||
$this->assertPermission('monitoring/command/acknowledge-problem');
|
||||
|
||||
$this->view->title = $this->translate('Acknowledge Host Problem');
|
||||
$this->handleCommandForm(new AcknowledgeProblemCommandForm());
|
||||
}
|
||||
|
@ -56,6 +58,8 @@ class Monitoring_HostController extends MonitoredObjectController
|
|||
*/
|
||||
public function addCommentAction()
|
||||
{
|
||||
$this->assertPermission('monitoring/command/add-comment');
|
||||
|
||||
$this->view->title = $this->translate('Add Host Comment');
|
||||
$this->handleCommandForm(new AddCommentCommandForm());
|
||||
}
|
||||
|
@ -65,6 +69,8 @@ class Monitoring_HostController extends MonitoredObjectController
|
|||
*/
|
||||
public function rescheduleCheckAction()
|
||||
{
|
||||
$this->assertPermission('monitoring/command/schedule-check');
|
||||
|
||||
$this->view->title = $this->translate('Reschedule Host Check');
|
||||
$this->handleCommandForm(new ScheduleHostCheckCommandForm());
|
||||
}
|
||||
|
@ -74,6 +80,8 @@ class Monitoring_HostController extends MonitoredObjectController
|
|||
*/
|
||||
public function scheduleDowntimeAction()
|
||||
{
|
||||
$this->assertPermission('monitoring/command/schedule-downtime');
|
||||
|
||||
$this->view->title = $this->translate('Schedule Host Downtime');
|
||||
$this->handleCommandForm(new ScheduleHostDowntimeCommandForm());
|
||||
}
|
||||
|
@ -83,6 +91,8 @@ class Monitoring_HostController extends MonitoredObjectController
|
|||
*/
|
||||
public function processCheckResultAction()
|
||||
{
|
||||
$this->assertPermission('monitoring/command/process-check-result');
|
||||
|
||||
$this->view->title = $this->translate('Submit Passive Host Check Result');
|
||||
$this->handleCommandForm(new ProcessCheckResultCommandForm());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue