From a61f7cebbb7a433f0441b6afc7366717bb421aeb Mon Sep 17 00:00:00 2001 From: philipp Date: Fri, 8 Mar 2024 13:57:45 +0100 Subject: [PATCH] no fee for 'ehrenmitglieder --- src/model/user.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/model/user.rs b/src/model/user.rs index 9890b69..11f4af4 100644 --- a/src/model/user.rs +++ b/src/model/user.rs @@ -212,6 +212,8 @@ impl User { } else if Family::find_by_opt_id(db, self.family_id).await.is_none() { if self.has_role(db, "Student").await || self.has_role(db, "Schüler").await { fee.add("Schüler/Student".into(), STUDENT_OR_PUPIL); + } else if self.has_role(db, "Ehrenmitglied").await { + fee.add("Ehrenmitglied".into(), 0); } else { fee.add("Mitgliedsbeitrag".into(), REGULAR); }