From 1a132924d269255ac267d1c645137f4062b33d88 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Thu, 9 Jul 2020 10:00:02 +0200 Subject: [PATCH] Fix StrongParameters for groups images --- app/controllers/admin/enterprise_groups_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/admin/enterprise_groups_controller.rb b/app/controllers/admin/enterprise_groups_controller.rb index 9d5bc6c665..d5dbccda3a 100644 --- a/app/controllers/admin/enterprise_groups_controller.rb +++ b/app/controllers/admin/enterprise_groups_controller.rb @@ -60,8 +60,8 @@ module Admin 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, + :name, :description, :long_description, :logo, :promo_image, :on_front_page, + :owner_id, :permalink, :email, :website, :facebook, :instagram, :linkedin, :twitter, enterprise_ids: [], address_attributes: PermittedAttributes::Address.attributes ) end