Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix a mass assignment issue so we can use brakeman #3469

Closed
wants to merge 1 commit into from

Conversation

matt257
Copy link
Contributor

@matt257 matt257 commented Mar 27, 2024

fix a mass assignment issue so we can use brakeman

Comment on lines -56 to +60
params.require(:support_ticket).permit!
params.require(:support_ticket).require(
:username, :email, :subject, :description
).permit(
:cc, :session_id, :attachments, :queue
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These fields are variable. I.e., centers can customize the information in the form (which becomes the information sent to this controller). I'd guess that's why tests are failing as well.

https://osc.github.io/ood-documentation/latest/customizations.html?#id21

@matt257 matt257 closed this Mar 27, 2024
@matt257 matt257 deleted the mass-assignment-fix branch March 27, 2024 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants