ObjectsController: fix type case for tabs check
This commit is contained in:
parent
4d13f8a9af
commit
3161cae4a8
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue