From a4ded8bb6704dc29a04171e676ca4bd07e33dfeb Mon Sep 17 00:00:00 2001 From: Matt Amos Date: Wed, 4 Apr 2012 16:51:03 +0100 Subject: [PATCH 1/1] Decided that restricting redacts to the user who created the redaction is an unnecessary restriction. --- app/controllers/old_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) -- 2.43.2