Welcome to mirror list, hosted at ThFree Co, Russian Federation.

group_url_constrainer.rb « constraints « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5f379756c11eeeacc5520cb52718d50b355762c1 (plain)
1
2
3
4
5
6
7
8
9
class GroupUrlConstrainer
  def matches?(request)
    id = request.params[:id]

    return false unless DynamicPathValidator.valid?(id)

    Group.find_by_full_path(id, follow_redirects: request.get?).present?
  end
end