monitoring/security: Apply hosts/filter restriction in the host detail view
This commit is contained in:
parent
7bf6bd39e9
commit
49d4d74dbb
|
@ -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'));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue