mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 08:44:10 +02:00
monitoring/security: Apply services/filter restriction in the service detail view
This commit is contained in:
parent
49d4d74dbb
commit
49b82af704
@ -26,6 +26,9 @@ class Monitoring_ServiceController extends MonitoredObjectController
|
|||||||
public function init()
|
public function init()
|
||||||
{
|
{
|
||||||
$service = new Service($this->backend, $this->params->get('host'), $this->params->get('service'));
|
$service = new Service($this->backend, $this->params->get('host'), $this->params->get('service'));
|
||||||
|
|
||||||
|
$this->applyRestriction('monitoring/services/filter', $service);
|
||||||
|
|
||||||
if ($service->fetch() === false) {
|
if ($service->fetch() === false) {
|
||||||
throw new Zend_Controller_Action_Exception($this->translate('Service not found'));
|
throw new Zend_Controller_Action_Exception($this->translate('Service not found'));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user