From 9252414078c61a9642889d19fd166cf658492ef2 Mon Sep 17 00:00:00 2001 From: Bob Van Landuyt Date: Tue, 24 Jul 2018 16:16:09 +0200 Subject: Hide the status fields behind a feature flag Since the frontend for this feature isn't ready, better to hide the confusing field behind a feature flag. --- app/helpers/profiles_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/helpers/profiles_helper.rb') diff --git a/app/helpers/profiles_helper.rb b/app/helpers/profiles_helper.rb index e7aa92e6e5c..a6a57db3002 100644 --- a/app/helpers/profiles_helper.rb +++ b/app/helpers/profiles_helper.rb @@ -9,4 +9,8 @@ module ProfilesHelper end end end + + def show_user_status_field? + Feature.enabled?(:user_status_form) || cookies[:feature_user_status_form] == 'true' + end end -- cgit v1.2.1