monitoring/security: Apply services/filter restriction in the service detail view

This commit is contained in:
Eric Lippmann 2015-01-27 14:57:54 +01:00
parent 49d4d74dbb
commit 49b82af704
1 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,9 @@ class Monitoring_ServiceController extends MonitoredObjectController
public function init()
{
$service = new Service($this->backend, $this->params->get('host'), $this->params->get('service'));
$this->applyRestriction('monitoring/services/filter', $service);
if ($service->fetch() === false) {
throw new Zend_Controller_Action_Exception($this->translate('Service not found'));
}