Skip to content

Conversation

@mameier
Copy link

@mameier mameier commented Jan 7, 2021

Given a controller using strong parameters with filter_resource_access and additional_collection

A call to an action of the additional_collection should not try to instantiate an object from params[:id].
A bug in controller/rails.rb missed to add additional_collection actions to the no_attribute_check array.
Test only covered the case strong_attributes: false

I added tests and fixed the bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant