From 2ef865392bc6cfb51ec34bf4024875136aedc541 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 28 Aug 2017 09:06:21 +0200 Subject: [PATCH] ObjectsTableZone: no object type filter... ...and drop 'Templates' tab, as it is useless here fixes #1125 --- library/Director/Web/Table/ObjectsTableZone.php | 13 +++++++++++++ library/Director/Web/Tabs/ObjectsTabs.php | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 library/Director/Web/Table/ObjectsTableZone.php diff --git a/library/Director/Web/Table/ObjectsTableZone.php b/library/Director/Web/Table/ObjectsTableZone.php new file mode 100644 index 00000000..530654c8 --- /dev/null +++ b/library/Director/Web/Table/ObjectsTableZone.php @@ -0,0 +1,13 @@ +hasPermission('director/admin')) { + if ($auth->hasPermission('director/admin') && $type !== 'zone') { if ($object->supportsImports()) { $this->add('templates', array( 'url' => sprintf('director/%ss/templates', strtolower($type)),