mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
ServiceController: Remove redudant if condition
This commit is contained in:
parent
26f8769d28
commit
4e6528e862
@ -29,12 +29,11 @@ class ServiceController extends ObjectController
|
|||||||
|
|
||||||
protected function checkDirectorPermissions()
|
protected function checkDirectorPermissions()
|
||||||
{
|
{
|
||||||
if ($this->hasPermission(Permission::MONITORING_SERVICES)) {
|
|
||||||
if ($this->backend()->canModifyService($this->getParam('host'), $this->getParam('name'))) {
|
if ($this->backend()->canModifyService($this->getParam('host'), $this->getParam('name'))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
$this->assertPermission('director/hosts');
|
$this->assertPermission(Permission::HOSTS);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function init()
|
public function init()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user