mirror of
https://github.com/gitlabhq/gitlabhq.git
synced 2025-07-25 16:00:50 +00:00
10 lines
246 B
Ruby
10 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
|