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:
authorLuke Bennett <lukeeeebennettplus@gmail.com>2018-07-23 16:30:11 +0300
committerBob Van Landuyt <bob@vanlanduyt.co>2018-07-26 20:00:56 +0300
commit01fd71adbd2736dcf28e56eb54301b4a01c0f81b (patch)
tree70cf1bf8d4c78d4c080bfd7e8fa405df4968e376 /app/helpers
parent626d5caf0fb4fe242c24dda294457479eebe6c16 (diff)
Add read_instance_statistics global policy
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/application_settings_helper.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/helpers/application_settings_helper.rb b/app/helpers/application_settings_helper.rb
index b355008f087..9e2346177a4 100644
--- a/app/helpers/application_settings_helper.rb
+++ b/app/helpers/application_settings_helper.rb
@@ -15,10 +15,6 @@ module ApplicationSettingsHelper
def allowed_protocols_present?
Gitlab::CurrentSettings.enabled_git_access_protocol.present?
end
-
- def hide_instance_statistics?(user = current_user)
- Gitlab::CurrentSettings.instance_statistics_visibility_private? && !user.admin?
- end
def enabled_protocol
case Gitlab::CurrentSettings.enabled_git_access_protocol