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…
Reference in New Issue