[-] BO : Can not access to module configuration if not installed anymore

This commit is contained in:
fSerny
2012-06-06 16:42:55 +00:00
parent 74535f9d87
commit 3e9347007d
+1 -1
View File
@@ -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;