monitoring/security: Apply hosts/filter restriction in the host detail view

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

View File

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