blob: 21aefc884be91b22c6192554fb99392f0375dfdb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
module Gitlab
module ProtocolAccess
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
|