X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/6bf25141de8b1fa21198e3cfe85ff95f39231efe..2347761266d8848dcdc42f9e5d9ef380fa04b89a:/app/controllers/node_controller.rb?ds=sidebyside diff --git a/app/controllers/node_controller.rb b/app/controllers/node_controller.rb index 03ae64f41..bfd1031f0 100644 --- a/app/controllers/node_controller.rb +++ b/app/controllers/node_controller.rb @@ -87,6 +87,11 @@ class NodeController < ApplicationController def delete begin node = Node.find(params[:id]) + # FIXME we no longer care about the user, (or maybe we want to check + # that the user of the changeset is the same user as is making this + # little change?) we really care about the + # changeset which must be open, and that the version that we have been + # given is the one that is currently stored in the database node.delete_with_history(@user) render :nothing => true