[-] BO : FixBug #PSCFV-10477 - Error message not shown on delete module without permissions

This commit is contained in:
Jerome Nadaud
2013-09-30 19:26:49 +02:00
parent 1b9472cc37
commit 452e07ab0b

View File

@@ -651,7 +651,7 @@ class AdminModulesControllerCore extends AdminController
$this->errors[] = $this->l('Module not found');
elseif ($key == 'install' && $this->tabAccess['add'] !== '1')
$this->errors[] = Tools::displayError('You do not have permission to install this module.');
elseif ($key == 'uninstall' && ($this->tabAccess['delete'] !== '1' || !$module->getPermission('configure')))
elseif ($key == 'delete' && ($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') || !Module::isInstalled(urldecode($name))))
$this->errors[] = Tools::displayError('You do not have permission to configure this module.');