[-] BO : FixBug #PSCFV-10477 - Error message not shown on delete module without permissions
This commit is contained in:
@@ -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.');
|
||||
|
||||
Reference in New Issue
Block a user