Read about our upcoming Code of Conduct on this issue

group_url_constrainer.rb 196 Bytes
Newer Older
1
2
class GroupUrlConstrainer
  def matches?(request)
3
4
    id = request.params[:id]

5
    return false unless NamespaceValidator.valid_full_path?(id)
6

7
    Group.find_by_full_path(id).present?
8
  end
9
end