Read about our upcoming Code of Conduct on this issue

This instance will be upgraded to Heptapod 0.28.1 on 2022-01-26 at 16:00 UTC+1 (a few minutes of down time)

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

5
    return false unless DynamicPathValidator.valid_group_path?(full_path)
6

7
    Group.find_by_full_path(full_path, follow_redirects: request.get?).present?
8
  end
9
end