BigW Consortium Gitlab

protocol_access.rb 315 Bytes
Newer Older
1 2 3
module Gitlab
  module ProtocolAccess
    def self.allowed?(protocol)
4
      if protocol == 'web'
5
        true
6
      elsif current_application_settings.enabled_git_access_protocol.blank?
7 8
        true
      else
9
        protocol == current_application_settings.enabled_git_access_protocol
10 11 12 13
      end
    end
  end
end