Skip to content

Commit

Permalink
Whitelist permissions_attributes parameter. Fixes samvera/active_fedo…
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Nov 4, 2014
1 parent 0ddd0a0 commit 393c0b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/controllers/generic_files_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@
post :update, id: generic_file,
generic_file: { tag: [''],
permissions_attributes: [
{ type: 'user', name: 'user1', access: 'edit' },
{ type: 'person', name: 'user1', access: 'edit' },
{ type: 'group', name: 'group1', access: 'read' }
]
}
Expand Down
2 changes: 1 addition & 1 deletion sufia-models/app/models/concerns/sufia/generic_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module GenericFile

# around_save :retry_warming

attr_accessible *(terms_for_display + [:part_of, :permissions])
attr_accessible *(terms_for_display + [:part_of, :permissions_attributes])
end

def persistent_url
Expand Down

0 comments on commit 393c0b8

Please sign in to comment.