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

This commit is contained in:
dMetzger
2012-07-24 08:47:00 +00:00
parent ff9d7cd786
commit 21b9fd50d1
+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