X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/07ad4a36ea398f4bba431d19d5d99e0160ad814b..1cacff9500260978db282eff582dac01e58d765c:/app/controllers/trace_controller.rb diff --git a/app/controllers/trace_controller.rb b/app/controllers/trace_controller.rb index de8b17f30..b758d0c40 100644 --- a/app/controllers/trace_controller.rb +++ b/app/controllers/trace_controller.rb @@ -88,6 +88,8 @@ class TraceController < ApplicationController render :nothing, :status => :forbidden if @trace.user.id != @user.id end end + rescue ActiveRecord::RecordNotFound + render :nothing => true, :status => :not_found end def create