[-] BO : inappropriate condition fixed for module access #PSCFV-3312
This commit is contained in:
1 parent
ff9d7cd786
commit
21b9fd50d1
1 file changed
+1
-1
+1
-1
@@ -376,7 +376,7 @@ class HookCore extends ObjectModel
|
|||||||
$exceptions = $moduleInstance->getExceptions($array['id_hook']);
|
$exceptions = $moduleInstance->getExceptions($array['id_hook']);
|
||||||
if (in_array(Dispatcher::getInstance()->getController(), $exceptions))
|
if (in_array(Dispatcher::getInstance()->getController(), $exceptions))
|
||||||
continue;
|
continue;
|
||||||
if (isset($context->employee) && !$moduleInstance->getPermission('view', $context->employee))
|
if (Validate::isLoadedObject($context->employee) && !$moduleInstance->getPermission('view', $context->employee))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Check which / if method is callable
|
// Check which / if method is callable
|
||||||
|
|||||||
Reference in new issue
Block a user