← All changes
|
src/Addons/UserBasedPricing/UserBasedPricingRulesRepository.php
+1
-1
7.1.5
→
8.1.1
View file →
| @@ -16,9 +16,9 @@ | ||
| 16 | 16 | } |
| 17 | 17 | |
| 18 | 18 | public function getCurrentUserRule( WC_Product $product ): ?UserBasedPricingRule { |
| 19 | 19 | |
| 20 | - $userId = get_current_user_id(); | |
| 20 | + $userId = TierPricingTablePlugin::getCurrentUser()->ID; // honours the plugin's current-user filter (Pricing test) | |
| 21 | 21 | |
| 22 | 22 | if ( $userId ) { |
| 23 | 23 | |
| 24 | 24 | if ( UserBasedPriceManager::userHasRules( $userId, $product->get_id() ) ) { |