mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 16:24:05 +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()
|
||||
{
|
||||
if ($this->hasPermission(Permission::MONITORING_SERVICES)) {
|
||||
if ($this->backend()->canModifyService($this->getParam('host'), $this->getParam('name'))) {
|
||||
return;
|
||||
}
|
||||
if ($this->backend()->canModifyService($this->getParam('host'), $this->getParam('name'))) {
|
||||
return;
|
||||
}
|
||||
$this->assertPermission('director/hosts');
|
||||
|
||||
$this->assertPermission(Permission::HOSTS);
|
||||
}
|
||||
|
||||
public function init()
|
||||
|
Loading…
x
Reference in New Issue
Block a user