mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-12 23:27:48 +00:00
Merge pull request #6809 from andrewpbrett/remove-bogus-providers
Remove "Bogus" payment providers from staging and production
This commit is contained in:
@@ -103,7 +103,7 @@ module Spree
|
||||
end
|
||||
|
||||
def load_data
|
||||
@providers = if spree_current_user.admin? || Rails.env.test?
|
||||
@providers = if Rails.env.dev? || Rails.env.test?
|
||||
Gateway.providers.sort_by(&:name)
|
||||
else
|
||||
Gateway.providers.reject{ |p| p.name.include? "Bogus" }.sort_by(&:name)
|
||||
|
||||
Reference in New Issue
Block a user