X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/dcad29dad0d29e22ffa0c34a8d9b43cbf5d64f12..034982a12fa025af8c1d381cd09483c97fb29dbe:/app/controllers/node_controller.rb?ds=sidebyside 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