ObjectsController: fix type case for tabs check

This commit is contained in:
Thomas Gelf 2015-12-21 12:44:19 +01:00
parent 4d13f8a9af
commit 3161cae4a8
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ abstract class ObjectsController extends ActionController
$this->assertPermission('director/' . $type . 's/read');
$dummy = $this->dummyObject();
if (! in_array($type, $this->globalTypes)) {
if (! in_array(ucfirst($type), $this->globalTypes)) {
if ($dummy->isGroup()) {
$this->getTabs()->activate('objectgroups');
$table = 'icinga' . ucfirst($type);