From 2ac8a3155c18c196de805f4d009e9fa82b1ac358 Mon Sep 17 00:00:00 2001 From: Philipp Hofer Date: Wed, 1 Jan 2025 17:44:48 +0100 Subject: [PATCH] fix no 'donau linz' group --- src/model/user.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/model/user.rs b/src/model/user.rs index 97fc4bc..3c544d7 100644 --- a/src/model/user.rs +++ b/src/model/user.rs @@ -342,7 +342,10 @@ ASKÖ Ruderverein Donau Linz", self.name), } pub async fn fee(&self, db: &SqlitePool) -> Option { - if !self.has_role(db, "Donau Linz").await { + if !self.has_role(db, "Donau Linz").await + && !self.has_role(db, "Unterstützend").await + && !self.has_role(db, "Förderndes Mitglied").await + { return None; } if self.deleted { @@ -378,7 +381,10 @@ ASKÖ Ruderverein Donau Linz", self.name), async fn fee_without_families(&self, db: &SqlitePool) -> Fee { let mut fee = Fee::new(); - if !self.has_role(db, "Donau Linz").await { + if !self.has_role(db, "Donau Linz").await + && !self.has_role(db, "Unterstützend").await + && !self.has_role(db, "Förderndes Mitglied").await + { return fee; } if self.has_role(db, "Rennrudern").await {