ObjectsTableZone: no object type filter...
...and drop 'Templates' tab, as it is useless here fixes #1125
This commit is contained in:
parent
8653942781
commit
2ef865392b
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
|
@ -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)),
|
||||||
|
|
Loading…
Reference in New Issue