From 9339c6a2658d5c6a2f33ff93acdfb07a140cd157 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20K=C3=BCndig?= Date: Wed, 21 Aug 2024 08:59:05 +0200 Subject: [PATCH] Fixed customer group prices compatibility with RainLab.User 3.0 --- classes/traits/UserSpecificPrice.php | 1 - updates/version.yaml | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/traits/UserSpecificPrice.php b/classes/traits/UserSpecificPrice.php index 3b745e281..a19d0c527 100644 --- a/classes/traits/UserSpecificPrice.php +++ b/classes/traits/UserSpecificPrice.php @@ -50,7 +50,6 @@ protected function checkDiscount(?CustomerGroup $group, Price $original): ?Price protected function hasUserSpecificPrice(): bool { return ! app()->runningInBackend() - && app()->has('user.auth') && optional(Auth::getUser())->offline_mall_customer_group_id !== null && $this->customer_group_prices->count() > 0; } diff --git a/updates/version.yaml b/updates/version.yaml index 99c156170..05246d529 100644 --- a/updates/version.yaml +++ b/updates/version.yaml @@ -592,3 +592,5 @@ v3.4.2: - 'Fixed demo seeder with new users plugin' v3.4.3: - 'Only create carts once a product is added' +v3.4.4: + - 'Fixed customer group prices compatibility with RainLab.User 3.0'