blob: 09fa14764e6eb5ed5d6b79ff7cac7b7986396e4d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
module Gitlab
module ProtocolAccess
extend Gitlab::CurrentSettings
def self.allowed?(protocol)
if protocol == 'web'
true
elsif current_application_settings.enabled_git_access_protocol.blank?
true
else
protocol == current_application_settings.enabled_git_access_protocol
end
end
end
end
|