mirror of
				https://github.com/Icinga/icingaweb2.git
				synced 2025-11-03 20:54:27 +01:00 
			
		
		
		
	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()
 | 
					    public function init()
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        $host = new Host($this->backend, $this->params->get('host'));
 | 
					        $host = new Host($this->backend, $this->params->get('host'));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        $this->applyRestriction('monitoring/hosts/filter', $host);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if ($host->fetch() === false) {
 | 
					        if ($host->fetch() === false) {
 | 
				
			||||||
            throw new Zend_Controller_Action_Exception($this->translate('Host not found'));
 | 
					            throw new Zend_Controller_Action_Exception($this->translate('Host not found'));
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user