summaryrefslogtreecommitdiff
path: root/app/helpers/user_callouts_helper.rb
diff options
context:
space:
mode:
authorDennis Tang <750946-dennis@users.noreply.gitlab.com>2019-08-14 12:20:36 +0000
committerKushal Pandya <kushalspandya@gmail.com>2019-08-14 12:20:36 +0000
commite5dd249c4ffb18dc6928e86ae0547b071f33dd72 (patch)
tree68627c5ad44168a18edbcf452eaf9c2297a62f14 /app/helpers/user_callouts_helper.rb
parent16f3f33e748d61b494f8815501e2a884d114255d (diff)
downloadgitlab-ce-e5dd249c4ffb18dc6928e86ae0547b071f33dd72.tar.gz
Add notification for updated privacy policy
This adds a notification to let users know of our updated privacy policy. Users can dismiss the notification either by following the link or closing the notification via an "x" icon.
Diffstat (limited to 'app/helpers/user_callouts_helper.rb')
-rw-r--r--app/helpers/user_callouts_helper.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/helpers/user_callouts_helper.rb b/app/helpers/user_callouts_helper.rb
index d5e459311f7..0ff18d0039f 100644
--- a/app/helpers/user_callouts_helper.rb
+++ b/app/helpers/user_callouts_helper.rb
@@ -4,6 +4,8 @@ module UserCalloutsHelper
GKE_CLUSTER_INTEGRATION = 'gke_cluster_integration'.freeze
GCP_SIGNUP_OFFER = 'gcp_signup_offer'.freeze
SUGGEST_POPOVER_DISMISSED = 'suggest_popover_dismissed'.freeze
+ # Privacy Policy Update: https://gitlab.com/gitlab-org/gitlab-ce/issues/64341
+ PRIVACY_POLICY_UPDATE_64341 = 'privacy_policy_update_64341'.freeze
def show_gke_cluster_integration_callout?(project)
can?(current_user, :create_cluster, project) &&
@@ -25,6 +27,10 @@ module UserCalloutsHelper
!user_dismissed?(SUGGEST_POPOVER_DISMISSED)
end
+ def show_privacy_policy_update_64341?
+ !user_dismissed?(PRIVACY_POLICY_UPDATE_64341)
+ end
+
private
def user_dismissed?(feature_name)