summaryrefslogtreecommitdiff
path: root/app/helpers/application_settings_helper.rb
diff options
context:
space:
mode:
authorLuke Bennett <lukeeeebennettplus@gmail.com>2018-07-23 14:30:11 +0100
committerBob Van Landuyt <bob@vanlanduyt.co>2018-07-26 19:00:56 +0200
commit01fd71adbd2736dcf28e56eb54301b4a01c0f81b (patch)
tree70cf1bf8d4c78d4c080bfd7e8fa405df4968e376 /app/helpers/application_settings_helper.rb
parent626d5caf0fb4fe242c24dda294457479eebe6c16 (diff)
downloadgitlab-ce-01fd71adbd2736dcf28e56eb54301b4a01c0f81b.tar.gz
Add read_instance_statistics global policy
Diffstat (limited to 'app/helpers/application_settings_helper.rb')
-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