X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/c11d961f624cb610c4b8184d24e522b2c093d1ea..71606b34f0fa50ab340c85034f69e7357479b93c:/app/controllers/node_controller.rb diff --git a/app/controllers/node_controller.rb b/app/controllers/node_controller.rb index f2a3ce329..6815470b8 100644 --- a/app/controllers/node_controller.rb +++ b/app/controllers/node_controller.rb @@ -58,6 +58,7 @@ class NodeController < ApplicationController if Segment.find(:first, :conditions => [ "visible = 1 and (node_a = ? or node_b = ?)", node.id, node.id]) render :nothing => true, :status => HTTP_PRECONDITION_FAILED else + node.user_id = @user.id node.visible = 0 node.save_with_history render :nothing => true