diff options
author | Patricio Cano <suprnova32@gmail.com> | 2016-06-27 18:08:17 +0300 |
---|---|---|
committer | Patricio Cano <suprnova32@gmail.com> | 2016-07-06 00:54:22 +0300 |
commit | da15471bb1c862111300a9202fe06c6a531fb283 (patch) | |
tree | f7abd2a654f5e32c012a21d48aa522c42fc89bc4 /lib/gitlab | |
parent | 0f54e2ae6c6b5e1d196bf133de5ef92e907ea816 (diff) |
Clarify protocol access check, and make Git HTTP access call more specific.
Diffstat (limited to 'lib/gitlab')
-rw-r--r-- | lib/gitlab/protocol_access.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/protocol_access.rb b/lib/gitlab/protocol_access.rb index 0498a72d4cf..836ff8a34ba 100644 --- a/lib/gitlab/protocol_access.rb +++ b/lib/gitlab/protocol_access.rb @@ -3,7 +3,7 @@ module Gitlab def self.allowed?(protocol) if protocol.to_s == 'web' true - elsif !current_application_settings.enabled_git_access_protocols.present? + elsif current_application_settings.enabled_git_access_protocols.blank? true else protocol.to_s == current_application_settings.enabled_git_access_protocols |