mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +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
|
|
@ -51,7 +51,7 @@ module Admin
|
|||
private
|
||||
|
||||
def difficulty_level_params
|
||||
params.require(:difficulty_level).permit(:title, :description, :color, :conference_id)
|
||||
params.require(:difficulty_level).permit(:title, :description, :color)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue