ServiceController: enforce optional monitoring...
...module permissions
This commit is contained in:
parent
8ec56ff16e
commit
ab28a4b1db
|
@ -28,7 +28,9 @@ class ServiceController extends ObjectController
|
|||
{
|
||||
if ($this->hasPermission('director/monitoring/services')) {
|
||||
$monitoring = new Monitoring();
|
||||
return $monitoring->authCanEditService($this->Auth(), $this->getParam('host'), $this->getParam('name'));
|
||||
if ($monitoring->authCanEditService($this->Auth(), $this->getParam('host'), $this->getParam('name'))) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
$this->assertPermission('director/hosts');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue