X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/dcad29dad0d29e22ffa0c34a8d9b43cbf5d64f12..3c79240a6ab23e4103826dd1cec7a12a19e948db:/app/controllers/node_controller.rb diff --git a/app/controllers/node_controller.rb b/app/controllers/node_controller.rb index 7a841769b..5d50df7e6 100644 --- a/app/controllers/node_controller.rb +++ b/app/controllers/node_controller.rb @@ -1,7 +1,9 @@ class NodeController < ApplicationController require 'xml/libxml' - before_filter :authorize, :only => [:create, :update, :destroy] + session :off + before_filter :authorize, :only => [:create, :update, :delete] + before_filter :check_availability, :only => [:create, :update, :delete] after_filter :compress_output def create @@ -49,9 +51,7 @@ class NodeController < ApplicationController new_node = Node.from_xml(request.raw_post) if new_node and new_node.id == node.id - node.timestamp = Time.now node.user_id = @user.id - node.latitude = new_node.latitude node.longitude = new_node.longitude node.tags = new_node.tags