Fix too loose strong parameters in the admin interface

There are some attributes that we don't use and/or that should
not be changeable, even by admins.
This commit is contained in:
Henne Vogelsang 2026-03-17 15:59:42 +01:00
parent d588fb00da
commit d6e36f2845
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6
12 changed files with 12 additions and 14 deletions

View file

@ -52,7 +52,7 @@ module Admin
private
def ticket_params
params.require(:ticket).permit(:conference, :title, :url, :description, :conference_id, :price_cents, :price_currency, :price, :registration_ticket)
params.require(:ticket).permit(:title, :url, :description, :price_cents, :price_currency, :price, :registration_ticket)
end
end
end