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']
|
redaction_id = params['redaction']
|
||||||
unless redaction_id.nil?
|
unless redaction_id.nil?
|
||||||
# if a redaction ID was specified, then set this element to
|
# if a redaction ID was specified, then set this element to
|
||||||
# be redacted in that redaction. (TODO: check that the
|
# be redacted in that redaction.
|
||||||
# user doing the redaction owns the redaction object too)
|
|
||||||
redaction = Redaction.find(redaction_id.to_i)
|
redaction = Redaction.find(redaction_id.to_i)
|
||||||
@old_element.redact!(redaction)
|
@old_element.redact!(redaction)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue