Decided that restricting redacts to the user who created the
redaction is an unnecessary restriction.
This commit is contained in:
parent
7953a883d0
commit
a4ded8bb67
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue