[-] 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:
dMetzger
2012-07-24 08:47:00 +00:00
parent 8fce66e370
commit 87bd54df2d
+1 -1
View File
@@ -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