[-] BO : inappropriate condition fixed for module access #PSCFV-3312
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16541 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
+1
-1
@@ -376,7 +376,7 @@ class HookCore extends ObjectModel
|
||||
$exceptions = $moduleInstance->getExceptions($array['id_hook']);
|
||||
if (in_array(Dispatcher::getInstance()->getController(), $exceptions))
|
||||
continue;
|
||||
if (isset($context->employee) && !$moduleInstance->getPermission('view', $context->employee))
|
||||
if (Validate::isLoadedObject($context->employee) && !$moduleInstance->getPermission('view', $context->employee))
|
||||
continue;
|
||||
|
||||
// Check which / if method is callable
|
||||
|
||||
Reference in New Issue
Block a user