]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/trace_controller.rb
Include the event type in the JSON output of a note
[rails.git] / app / controllers / trace_controller.rb
index d709b5cf10991433840cff8c64d3ee6efa5bd281..e3f41f0ace69ef5148804aef75cbf17cb1004819 100644 (file)
@@ -153,7 +153,7 @@ class TraceController < ApplicationController
         @trace.errors.add(:gpx_file, "can't be blank")
       end
     else
-      @trace = Trace.new(:visibility => default_visibility)
+      @trace = Trace.new({:visibility => default_visibility}, :without_protection => true)
     end
 
     @title = t 'trace.create.upload_trace'
@@ -386,7 +386,7 @@ private
       :inserted => true,
       :user => @user,
       :timestamp => Time.now.getutc
-    })
+    }, :without_protection => true)
 
     Trace.transaction do
       begin