Commit 8a9bef73 authored by Mario Manno's avatar Mario Manno

add missing strong param

parent d83dd4b0
......@@ -241,7 +241,8 @@ class EventsController < ApplicationController
:id, :title, :subtitle, :event_type, :time_slots, :state, :start_time, :public, :language, :abstract, :description, :logo, :track_id, :room_id, :note, :submission_note, :do_not_record, :recording_license,
event_attachments_attributes: %i(id title public _destroy),
ticket_attributes: %i(id remote_ticket_id),
links_attributes: %i(id title url _destroy)
links_attributes: %i(id title url _destroy),
event_people_attributes: %i(id person_id event_role role_state _destroy)
)
end
......
......@@ -105,7 +105,7 @@ class UsersController < ApplicationController
def user_params
params.require(:user).permit(:id, :role, :email, :password, :password_confirmation,
conference_users_attributes: %i(role conference_id))
conference_users_attributes: %i(id role conference_id _destroy))
end
def can_manage_user!
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment