From b65c630edea1f06403b4f837ec79d2541b7fb46b Mon Sep 17 00:00:00 2001 From: samyou-softwire Date: Wed, 15 Apr 2026 12:05:41 +0100 Subject: [PATCH] CLDC-4332: TEMP: Add MHCLG filter for review apps --- app/services/feature_toggle.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/services/feature_toggle.rb b/app/services/feature_toggle.rb index 7404309f2..6e97f0669 100644 --- a/app/services/feature_toggle.rb +++ b/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 # if nil this feature will be disabled 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