From 29a457575b4f689b63304b24e87e36fee5fdaaff Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Tue, 25 Feb 2020 18:13:40 +0000 Subject: [PATCH] Permit specific params in enterprise_groups controller --- app/controllers/admin/enterprise_groups_controller.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/controllers/admin/enterprise_groups_controller.rb b/app/controllers/admin/enterprise_groups_controller.rb index 4494a7927a..f926852f6f 100644 --- a/app/controllers/admin/enterprise_groups_controller.rb +++ b/app/controllers/admin/enterprise_groups_controller.rb @@ -55,5 +55,13 @@ module Admin def collection EnterpriseGroup.by_position end + + def permitted_resource_params + params.require(:enterprise_group).permit( + :name, :description, :long_description, :on_front_page, :owner_id, :permalink, + :email, :website, :facebook, :instagram, :linkedin, :twitter, + enterprise_ids: [], address_attributes: permitted_address_attributes + ) + end end end