hitobito-kjv/app/helpers/kjv/csv_import_helper.rb
KJV Bautzen e9675d5d0e Phase 1: Beitragsstatus und Mitgliedsausweis 🤖
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 20:19:06 +02:00

15 lines
558 B
Ruby

# frozen_string_literal: true
# Copyright (c) 2026, Kreisjagdverband Bautzen e.V. This file is part of
# hitobito_kjv and licensed under the Affero General Public License version 3
# or later. See the COPYING file at the top-level directory.
# Feldauswahl im CSV-Import: "Beitrag bezahlt bis" nur für Kassier-Rollen anbieten.
module Kjv::CsvImportHelper
def application_person_fields
fields = super
return fields if can?(:manage_membership_fees, group)
fields.reject { |field| field.key.to_s == Kjv::MembershipFee::ATTR.to_s }
end
end