diff options
author | Dennis Tang <750946-dennis@users.noreply.gitlab.com> | 2019-08-14 12:20:36 +0000 |
---|---|---|
committer | Kushal Pandya <kushalspandya@gmail.com> | 2019-08-14 12:20:36 +0000 |
commit | e5dd249c4ffb18dc6928e86ae0547b071f33dd72 (patch) | |
tree | 68627c5ad44168a18edbcf452eaf9c2297a62f14 /app/helpers/user_callouts_helper.rb | |
parent | 16f3f33e748d61b494f8815501e2a884d114255d (diff) | |
download | gitlab-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.rb | 6 |
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) |