diff options
author | Patricio Cano <suprnova32@gmail.com> | 2016-06-29 22:30:27 +0300 |
---|---|---|
committer | Patricio Cano <suprnova32@gmail.com> | 2016-07-06 00:54:22 +0300 |
commit | fbaabb3911c6fec25edc25bfffad94ae2a7c0e28 (patch) | |
tree | f8ec3e24dbff92c06e651e47a48c4ed47c277897 /lib | |
parent | 120a1189bfa8b2afa7a8274c5617808f88f36101 (diff) |
Rename `enabled_git_access_protocols` to singular.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/protocol_access.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/protocol_access.rb b/lib/gitlab/protocol_access.rb index 836ff8a34ba..4c90654c59c 100644 --- a/lib/gitlab/protocol_access.rb +++ b/lib/gitlab/protocol_access.rb @@ -3,10 +3,10 @@ module Gitlab def self.allowed?(protocol) if protocol.to_s == 'web' true - elsif current_application_settings.enabled_git_access_protocols.blank? + elsif current_application_settings.enabled_git_access_protocol.blank? true else - protocol.to_s == current_application_settings.enabled_git_access_protocols + protocol.to_s == current_application_settings.enabled_git_access_protocol end end end |