]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/way_controller.rb
Fixing a bug in my foreign keys. I can now upload and download nodes and ways using...
[rails.git] / app / controllers / way_controller.rb
index cf1634fa55699cccdae1084536256c3f7c5fc4bd..17f166ddc85d7c50abd4a7d5ce7424546d259007 100644 (file)
@@ -12,11 +12,10 @@ class WayController < ApplicationController
       way = Way.from_xml(request.raw_post, true)
 
       if way
-        if !way.preconditions_ok?
+        unless way.preconditions_ok?
           render :text => "", :status => :precondition_failed
         else
           way.version = 0
-          way.user_id = @user.id
           way.save_with_history!
 
           render :text => way.id.to_s, :content_type => "text/plain"