debian-mirror-gitlab/lib/constraints/jira_encoded_url_constrainer.rb
2020-11-24 15:15:51 +05:30

9 lines
246 B
Ruby

# frozen_string_literal: true
module Constraints
class JiraEncodedUrlConstrainer
def matches?(request)
request.path.starts_with?('/-/jira') || request.params[:project_id].include?(Gitlab::Jira::Dvcs::ENCODED_SLASH)
end
end
end