diff options
author | Luke Bennett <lukeeeebennettplus@gmail.com> | 2018-07-23 14:30:11 +0100 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-07-26 19:00:56 +0200 |
commit | 01fd71adbd2736dcf28e56eb54301b4a01c0f81b (patch) | |
tree | 70cf1bf8d4c78d4c080bfd7e8fa405df4968e376 /app/helpers/application_settings_helper.rb | |
parent | 626d5caf0fb4fe242c24dda294457479eebe6c16 (diff) | |
download | gitlab-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.rb | 4 |
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 |