summaryrefslogtreecommitdiffstats
path: root/application/forms/IcingaAddServiceForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/forms/IcingaAddServiceForm.php')
-rw-r--r--application/forms/IcingaAddServiceForm.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/application/forms/IcingaAddServiceForm.php b/application/forms/IcingaAddServiceForm.php
index df2302e..60ccb6f 100644
--- a/application/forms/IcingaAddServiceForm.php
+++ b/application/forms/IcingaAddServiceForm.php
@@ -3,6 +3,7 @@
namespace Icinga\Module\Director\Forms;
use gipfl\IcingaWeb2\Link;
+use Icinga\Module\Director\Auth\Permission;
use Icinga\Module\Director\Web\Form\DirectorObjectForm;
use Icinga\Module\Director\Objects\IcingaHost;
use Icinga\Module\Director\Objects\IcingaService;
@@ -82,7 +83,7 @@ class IcingaAddServiceForm extends DirectorObjectForm
if ($this->hasBeenSent()) {
$this->addError($this->translate('No service has been chosen'));
} else {
- if ($this->hasPermission('director/admin')) {
+ if ($this->hasPermission(Permission::ADMIN)) {
$html = sprintf(
$this->translate('Please define a %s first'),
Link::create(