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