[-] BO : inappropriate condition fixed for module access #PSCFV-3312

This commit is contained in:
dMetzger
2012-07-24 08:47:00 +00:00
parent 0f5fc3c48b
commit 441056fb2d
+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