]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/segment_controller.rb
Return "404 Not Found" for users and traces which don't exist.
[rails.git] / app / controllers / segment_controller.rb
index 2d55bbf79bc737dd609d829fa0cd7d12a23cd2f4..070c2be8123ebcc1f556ede5f140df345ba42e6e 100644 (file)
@@ -2,6 +2,7 @@ class SegmentController < ApplicationController
   require 'xml/libxml'
 
   before_filter :authorize, :only => [:create, :update, :delete]
+  before_filter :check_availability, :only => [:create, :update, :delete]
   after_filter :compress_output
 
   def create