Index: branches/5.2.x/units/products/products_item.php =================================================================== diff -u -N -r14258 -r16775 --- branches/5.2.x/units/products/products_item.php (.../products_item.php) (revision 14258) +++ branches/5.2.x/units/products/products_item.php (.../products_item.php) (revision 16775) @@ -1,6 +1,6 @@ Application->isAdmin && $this->Application->LoggedIn()) { // also group based - $primary_group = (int)$this->Application->Session->GetField('GroupId'); + /** @var UserHelper $user_helper */ + $user_helper = $this->Application->recallObject('UserHelper'); + $primary_group = $user_helper->getPrimaryGroup($this->Application->RecallVar('user_id')); $cache_key .= ':group=' . $primary_group; } @@ -82,4 +84,4 @@ return $price_info; } - } \ No newline at end of file + }