Decided that restricting redacts to the user who created the

redaction is an unnecessary restriction.
This commit is contained in:
Matt Amos 2012-04-04 16:51:03 +01:00 committed by Tom Hughes
parent 7953a883d0
commit a4ded8bb67

View file

@ -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)