mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Enable customer_balance to all users
This however makes the tests still pass, which rely on the off-branch logic of the toggle. We'll work on them next.
This commit is contained in:
@@ -3,11 +3,7 @@ require 'open_food_network/feature_toggle'
|
||||
beta_testers = ENV['BETA_TESTERS']&.split(/[\s,]+/) || []
|
||||
|
||||
OpenFoodNetwork::FeatureToggle.enable(:customer_balance) do |user|
|
||||
if beta_testers == ['all']
|
||||
true
|
||||
else
|
||||
beta_testers.include?(user.email)
|
||||
end
|
||||
!Rails.env.test?
|
||||
end
|
||||
|
||||
OpenFoodNetwork::FeatureToggle.enable(:unit_price) do
|
||||
|
||||
Reference in New Issue
Block a user