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-10-13 09:09:09 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-10-13 09:09:09 +0300
commit8f71e69fdbb65d2cf95cf16ef5a0add0919edb45 (patch)
tree0c282e1224b9ff50ba272b698b92919b72973af9 /app/helpers/application_helper.rb
parentf645d7e060e85cbf442b4e86009bc776688e4661 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 9fdf0dae6d7..2a6b00c0bd8 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -212,6 +212,10 @@ module ApplicationHelper
Gitlab::CurrentSettings.current_application_settings.help_page_support_url.presence || promo_url + '/getting-help/'
end
+ def instance_review_permitted?
+ ::Gitlab::CurrentSettings.instance_review_permitted? && current_user&.admin?
+ end
+
def static_objects_external_storage_enabled?
Gitlab::CurrentSettings.static_objects_external_storage_enabled?
end