[-] FO : #PSCFV-1792 - Fix bug with attribute check_access of the method Category::getProducts()

This commit is contained in:
mDeflotte committed 2012-05-11 12:10:22 +00:00
1 parent ee40dcef45
commit 7a2490239a
1 file changed
+1 -1
+1 -1
View File
@@ -585,7 +585,7 @@ class CategoryCore extends ObjectModel
{ {
if (!$context) if (!$context)
$context = Context::getContext(); $context = Context::getContext();
if (!$check_access || !$this->checkAccess($context->customer->id)) if ($check_access && !$this->checkAccess($context->customer->id))
return false; return false;
$front = true; $front = true;