hitobito-kjv/app/models/group/kreisjagdverband.rb
KJV Bautzen 26ce1112bf Gruppenstruktur nach Satzung, Beitragsfreiheit, Version 0.4.0 🤖
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 17:37:12 +02:00

30 lines
901 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.
# Oberste Ebene: Kreisjagdverband Bautzen e.V. (Satzung § 1)
class Group::Kreisjagdverband < Group
self.layer = true
self.event_types = [Event, Event::Course]
self.default_children = [Group::Vorstand,
Group::Mitglieder,
Group::Geschaeftsstelle,
Group::Kassenpruefer]
children Group::Vorstand,
Group::Mitglieder,
Group::Hegering,
Group::Geschaeftsstelle,
Group::Kassenpruefer,
Group::Jaegerlehrhof,
Group::Arbeitsgruppe
# Technische Administration (nicht Teil der Satzung)
class Administrator < Role
self.permissions = [:admin, :layer_and_below_full, :impersonation]
end
roles Administrator
end