From 87bd54df2db8551f20b0df7b862e896c327e2fae Mon Sep 17 00:00:00 2001 From: dMetzger Date: Tue, 24 Jul 2012 08:47:00 +0000 Subject: [PATCH] [-] 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 --- classes/Hook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Hook.php b/classes/Hook.php index 256c88cb1..6159c55b7 100644 --- a/classes/Hook.php +++ b/classes/Hook.php @@ -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