summaryrefslogtreecommitdiff
path: root/lib/constraints/jira_encoded_url_constrainer.rb
blob: 92e2fff346b40d8104455fe344abe340e17affef (plain)
1
2
3
4
5
6
7
8
9
# 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