gitlab-org--gitlab-foss/lib/constraints/user_url_constrainer.rb
Dmitriy Zaporozhets 6683fdcfb0
Add nested groups support to the routing
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-11-23 14:08:36 +02:00

5 lines
121 B
Ruby

class UserUrlConstrainer
def matches?(request)
User.find_by_username(request.params[:username]).present?
end
end