Browse Source

CLDC-4332: TEMP: Add MHCLG filter for review apps

pull/3305/head
samyou-softwire 2 weeks ago
parent
commit
b65c630ede
  1. 4
      app/services/feature_toggle.rb

4
app/services/feature_toggle.rb

@ -38,6 +38,8 @@ class FeatureToggle
# IDs of organisations a user must be in to be allowed the support role # IDs of organisations a user must be in to be allowed the support role
# if nil this feature will be disabled # if nil this feature will be disabled
def self.support_organisation_allow_list def self.support_organisation_allow_list
[1] if Rails.env.production? return [1] if Rails.env.production?
[Organisation.find_by(name: "MHCLG").id] if Rails.env.review?
end end
end end

Loading…
Cancel
Save