mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-17 05:34:04 +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
|
|
@ -97,7 +97,7 @@ module Admin
|
|||
private
|
||||
|
||||
def question_params
|
||||
params.require(:question).permit(:title, :global, :answer_ids, :question_type_id, :conference_id, answers_attributes: [:id, :title])
|
||||
params.require(:question).permit(:title, :global, :answer_ids, :question_type_id, answers_attributes: [:id, :title])
|
||||
end
|
||||
|
||||
def conference_params
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue