ObjectsTableZone: no object type filter...

...and drop 'Templates' tab, as it is useless here

fixes #1125
This commit is contained in:
Thomas Gelf 2017-08-28 09:06:21 +02:00
parent 8653942781
commit 2ef865392b
2 changed files with 14 additions and 1 deletions

View File

@ -0,0 +1,13 @@
<?php
namespace Icinga\Module\Director\Web\Table;
use Zend_Db_Select as ZfSelect;
class ObjectsTableZone extends ObjectsTable
{
protected function applyObjectTypeFilter(ZfSelect $query)
{
return $query;
}
}

View File

@ -45,7 +45,7 @@ class ObjectsTabs extends Tabs
} }
} }
if ($auth->hasPermission('director/admin')) { if ($auth->hasPermission('director/admin') && $type !== 'zone') {
if ($object->supportsImports()) { if ($object->supportsImports()) {
$this->add('templates', array( $this->add('templates', array(
'url' => sprintf('director/%ss/templates', strtolower($type)), 'url' => sprintf('director/%ss/templates', strtolower($type)),