[-] 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:
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user