[-] MO : BugFix : PSTEST-185 : categories and customer group permissions fixed
This commit is contained in:
@@ -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