[-] MO : BugFix : PSTEST-185 : categories and customer group permissions fixed

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12884 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vChabot
2012-02-01 10:00:28 +00:00
parent 846eb566c8
commit 21bce7a4e4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ define('_STOCK_MOVEMENT_MISSING_REASON_', 4);
/**
* @deprecated 1.5.0.1
* @see Group::CUSTOMER
* @see const PS_CUSTOMER_GROUP
*/
define('_PS_DEFAULT_CUSTOMER_GROUP_', 3);
+1 -1
View File
@@ -161,7 +161,7 @@ class BlockCategories extends Module
$id_customer = (int)($params['cookie']->id_customer);
// Get all groups for this customer and concatenate them as a string: "1,2,3..."
// It is necessary to keep the group query separate from the main select query because it is used for the cache
$groups = $id_customer ? implode(', ', Customer::getGroupsStatic($id_customer)) : _PS_DEFAULT_CUSTOMER_GROUP_;
$groups = $id_customer ? implode(', ', Customer::getGroupsStatic($id_customer)) : Configuration::get('PS_UNIDENTIFIED_GROUP');
$id_product = (int)(Tools::getValue('id_product', 0));
$id_category = (int)(Tools::getValue('id_category', 0));
$id_lang = (int)($params['cookie']->id_lang);