mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-16 21:24:05 +00:00
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:
parent
d588fb00da
commit
d6e36f2845
12 changed files with 12 additions and 14 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue