mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
ServiceController: Use given properties to get host/service name
This commit is contained in:
parent
4ef7f5664a
commit
d26a619577
@ -29,7 +29,10 @@ class ServiceController extends ObjectController
|
||||
|
||||
protected function checkDirectorPermissions()
|
||||
{
|
||||
if ($this->backend()->canModifyService($this->getParam('host'), $this->getParam('name'))) {
|
||||
if ($this->host
|
||||
&& $this->object
|
||||
&& $this->backend()->canModifyService($this->host->getObjectName(), $this->object->getObjectName())
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user