Commit 4c80c602 authored by Kaspar Vollenweider's avatar Kaspar Vollenweider

fix: group offer comments field not in permitted attributes policy

parent c43687c8
Pipeline #37541 failed with stage
in 11 minutes and 10 seconds
......@@ -12,7 +12,7 @@ class GroupOfferPolicy < ApplicationPolicy
:title, :offer_type, :offer_state, :necessary_volunteers, :description,
:women, :men, :children, :teenagers, :unaccompanied, :all, :long_term, :regular,
:short_term, :workday, :weekend, :morning, :afternoon, :evening, :flexible, :schedule_details,
:creator_id, :organization, :location, :period_end, :group_offer_category_id,
:creator_id, :organization, :location, :period_end, :group_offer_category_id, :comments,
group_assignments_attributes
]
attributes << :department_id if edit?
......
......@@ -71,6 +71,9 @@ h2= @group_offer.title
tr
td= t_attr(:schedule_details)
td= @group_offer.schedule_details
tr
td= t_attr(:comments)
td= @group_offer.comments
= render 'group_assignments'
......
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