Skip to content

Commit

Permalink
Fixed customer group prices compatibility with RainLab.User 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-kuendig committed Aug 21, 2024
1 parent 107ed12 commit 9339c6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion classes/traits/UserSpecificPrice.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 2 additions & 0 deletions updates/version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit 9339c6a

Please sign in to comment.