diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-15 18:09:17 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-15 18:09:17 +0300 |
commit | 0d83264a7a24b33de933437355c77a4fe47e5419 (patch) | |
tree | ebf7a1d3274d918fb968d7056300cc388f2e91a4 /app/helpers/explore_helper.rb | |
parent | b7c735c8ac11b8182807070fc6f84f2606e15427 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/explore_helper.rb')
-rw-r--r-- | app/helpers/explore_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/explore_helper.rb b/app/helpers/explore_helper.rb index 1b36f60c316..b341cc795a0 100644 --- a/app/helpers/explore_helper.rb +++ b/app/helpers/explore_helper.rb @@ -51,6 +51,10 @@ module ExploreHelper links.any? { |link| explore_nav_link?(link) } end + def public_visibility_restricted? + Gitlab::CurrentSettings.restricted_visibility_levels.include? Gitlab::VisibilityLevel::PUBLIC + end + private def get_explore_nav_links |