summaryrefslogtreecommitdiff
path: root/app/helpers/profiles_helper.rb
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2018-07-24 16:16:09 +0200
committerBob Van Landuyt <bob@vanlanduyt.co>2018-07-30 15:01:26 +0200
commit9252414078c61a9642889d19fd166cf658492ef2 (patch)
tree2b456a25dc9375b28af242171c7c9c4b702a84fb /app/helpers/profiles_helper.rb
parentf1d3ea63cf74d2791a9a863b29ab2d919ea61bd0 (diff)
downloadgitlab-ce-9252414078c61a9642889d19fd166cf658492ef2.tar.gz
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.
Diffstat (limited to 'app/helpers/profiles_helper.rb')
-rw-r--r--app/helpers/profiles_helper.rb4
1 files changed, 4 insertions, 0 deletions
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