Select Git revision
protocol_access.rb
Forked from
GitLab.org / GitLab FOSS
18915 commits behind the upstream repository.
-
Patricio Cano authoredPatricio Cano authored
protocol_access.rb 315 B
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