[-] BO : fix #PSCFV-2097
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17722 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -806,7 +806,7 @@ class AdminModulesControllerCore extends AdminController
|
|||||||
{
|
{
|
||||||
foreach ($modules as $k => $module)
|
foreach ($modules as $k => $module)
|
||||||
{
|
{
|
||||||
// Check add permissions, if add permissions not set, addons modules and non installed modules will not be displayed
|
// Check add permissions, if add permissions not set, addons modules and uninstalled modules will not be displayed
|
||||||
if ($this->tabAccess['add'] !== '1' && isset($module->type) && ($module->type != 'addonsNative' || $module->type != 'addonsBought'))
|
if ($this->tabAccess['add'] !== '1' && isset($module->type) && ($module->type != 'addonsNative' || $module->type != 'addonsBought'))
|
||||||
unset($modules[$k]);
|
unset($modules[$k]);
|
||||||
else if ($this->tabAccess['add'] !== '1' && (!isset($module->id) || $module->id < 1))
|
else if ($this->tabAccess['add'] !== '1' && (!isset($module->id) || $module->id < 1))
|
||||||
|
|||||||
Reference in New Issue
Block a user