diff --git a/library/Director/Web/Controller/ObjectController.php b/library/Director/Web/Controller/ObjectController.php index fc724c18..ed38fdb0 100644 --- a/library/Director/Web/Controller/ObjectController.php +++ b/library/Director/Web/Controller/ObjectController.php @@ -207,7 +207,7 @@ abstract class ObjectController extends ActionController ucfirst($ltype) ); } else { - $this->assertPermission('director/' . $ltype); + $this->assertPermission("director/${ltype}s"); $this->addTitle( $this->translate('Add new Icinga %s'), ucfirst($ltype)