From: Matt Amos Date: Wed, 4 Apr 2012 15:51:03 +0000 (+0100) Subject: Decided that restricting redacts to the user who created the X-Git-Tag: live~5711 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/a4ded8bb6704dc29a04171e676ca4bd07e33dfeb Decided that restricting redacts to the user who created the redaction is an unnecessary restriction. --- diff --git a/app/controllers/old_controller.rb b/app/controllers/old_controller.rb index e137554d5..0aef6123d 100644 --- a/app/controllers/old_controller.rb +++ b/app/controllers/old_controller.rb @@ -50,8 +50,7 @@ class OldController < ApplicationController redaction_id = params['redaction'] unless redaction_id.nil? # if a redaction ID was specified, then set this element to - # be redacted in that redaction. (TODO: check that the - # user doing the redaction owns the redaction object too) + # be redacted in that redaction. redaction = Redaction.find(redaction_id.to_i) @old_element.redact!(redaction)