X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2c98558c86f50a26b96d4b0feebdb93195a10455..9d6ae5baae9f86acb8e2d9fcb006d8b81167281b:/app/controllers/segment_controller.rb?ds=inline diff --git a/app/controllers/segment_controller.rb b/app/controllers/segment_controller.rb index 5ef11084c..bc41b85a3 100644 --- a/app/controllers/segment_controller.rb +++ b/app/controllers/segment_controller.rb @@ -60,6 +60,7 @@ class SegmentController < ApplicationController if WaySegment.find(:first, :joins => "INNER JOIN current_ways ON current_ways.id = current_way_segments.id", :conditions => [ "current_ways.visible = 1 AND current_way_segments.segment_id = ?", segment.id ]) render :nothing => true, :status => HTTP_PRECONDITION_FAILED else + segment.user_id = @user.id segment.visible = 0 segment.save_with_history render :nothing => true