From 4099128eb0a2299afb6059ee0e4360308bedc4ca Mon Sep 17 00:00:00 2001 From: Hugh Messenger Date: Fri, 15 Jul 2016 10:53:58 -0500 Subject: [PATCH] Removing packages backend admin. --- .../com_fabrik/views/packages/tmpl/bootstrap.php | 13 ++++++++++++- .../com_fabrik/views/packages/view.html.php | 6 ++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/administrator/components/com_fabrik/views/packages/tmpl/bootstrap.php b/administrator/components/com_fabrik/views/packages/tmpl/bootstrap.php index 9f9d32d53ad..3b950f83788 100644 --- a/administrator/components/com_fabrik/views/packages/tmpl/bootstrap.php +++ b/administrator/components/com_fabrik/views/packages/tmpl/bootstrap.php @@ -132,5 +132,16 @@ sidebar)): ?> +
+ sidebar; ?> +
+
+ +
+ \ No newline at end of file + ?> +
+ + diff --git a/administrator/components/com_fabrik/views/packages/view.html.php b/administrator/components/com_fabrik/views/packages/view.html.php index fcd951a4d13..db6f6044ef6 100644 --- a/administrator/components/com_fabrik/views/packages/view.html.php +++ b/administrator/components/com_fabrik/views/packages/view.html.php @@ -92,9 +92,11 @@ public function display($tpl = null) protected function addToolbar() { require_once JPATH_COMPONENT . '/helpers/fabrik.php'; + $canDo = FabrikAdminHelper::getActions($this->state->get('filter.category_id')); JToolBarHelper::title(FText::_('COM_FABRIK_MANAGER_PACKAGES'), 'box-add'); + /* if ($canDo->get('core.create')) { JToolBarHelper::addNew('package.add', 'JTOOLBAR_NEW'); @@ -131,6 +133,8 @@ protected function addToolbar() JToolBarHelper::trash('packages.trash', 'JTOOLBAR_TRASH'); } + */ + if ($canDo->get('core.admin')) { JToolBarHelper::divider(); @@ -140,6 +144,7 @@ protected function addToolbar() JToolBarHelper::divider(); JToolBarHelper::help('JHELP_COMPONENTS_FABRIK_PACKAGES', false, FText::_('JHELP_COMPONENTS_FABRIK_PACKAGES')); + /* if (FabrikWorker::j3()) { JHtmlSidebar::setAction('index.php?option=com_fabrik&view=packages'); @@ -151,5 +156,6 @@ protected function addToolbar() JHtml::_('select.options', $publishOpts, 'value', 'text', $this->state->get('filter.published'), true) ); } + */ } }