[-] BO : Can not access to module configuration if not installed anymore
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15884 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user