From 3e9347007d0dbcab18f0db2525abe731335c50d6 Mon Sep 17 00:00:00 2001 From: fSerny Date: Wed, 6 Jun 2012 16:42:55 +0000 Subject: [PATCH] [-] BO : Can not access to module configuration if not installed anymore --- controllers/admin/AdminModulesController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/admin/AdminModulesController.php b/controllers/admin/AdminModulesController.php index 4f0bf0693..ca1a8a96d 100644 --- a/controllers/admin/AdminModulesController.php +++ b/controllers/admin/AdminModulesController.php @@ -671,7 +671,7 @@ class AdminModulesControllerCore extends AdminController $this->errors[] = Tools::displayError('You do not have permission to install a module.'); elseif ($key == 'uninstall' && ($this->tabAccess['delete'] !== '1' || !$module->getPermission('configure'))) $this->errors[] = Tools::displayError('You do not have permission to delete this module.'); - elseif ($key == 'configure' && ($this->tabAccess['edit'] !== '1' || !$module->getPermission('configure'))) + elseif ($key == 'configure' && ($this->tabAccess['edit'] !== '1' || !$module->getPermission('configure') || !Module::isInstalled(urldecode($name)))) $this->errors[] = Tools::displayError('You do not have permission to configure this module.'); elseif ($key == 'install' && Module::isInstalled($module->name)) $this->errors[] = Tools::displayError('This module is already installed:').' '.$module->name;