mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-15 23:56:09 +10:00
14 lines
330 B
Ruby
14 lines
330 B
Ruby
module Gitlab
|
|
module ProtocolAccess
|
|
def self.allowed?(protocol)
|
|
if protocol.to_s == 'web'
|
|
true
|
|
elsif !current_application_settings.enabled_git_access_protocols.present?
|
|
true
|
|
else
|
|
protocol.to_s == current_application_settings.enabled_git_access_protocols
|
|
end
|
|
end
|
|
end
|
|
end
|