Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-04-15 18:09:17 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-04-15 18:09:17 +0300
commit0d83264a7a24b33de933437355c77a4fe47e5419 (patch)
treeebf7a1d3274d918fb968d7056300cc388f2e91a4 /app/helpers/explore_helper.rb
parentb7c735c8ac11b8182807070fc6f84f2606e15427 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/explore_helper.rb')
-rw-r--r--app/helpers/explore_helper.rb4
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