protocol_access.rb 315 Bytes EditWeb IDE 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