Fixing review comments
Added scoping for unredacted items, cleaned up authorization and railsified old_node_controller.
This commit is contained in:
parent
67dd9e4c9d
commit
67182f824e
6 changed files with 72 additions and 32 deletions
|
@ -193,7 +193,7 @@ class OldNodeControllerTest < ActionController::TestCase
|
|||
|
||||
do_redact_node(nodes(:node_with_versions_v4),
|
||||
redactions(:example))
|
||||
assert_response :forbidden, "shouldn't be OK to redact current version as moderator."
|
||||
assert_response :bad_request, "shouldn't be OK to redact current version as moderator."
|
||||
end
|
||||
|
||||
##
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue