From 6e0c594c841d877172cd12e4929ca132b0384ea9 Mon Sep 17 00:00:00 2001 From: philipp Date: Fri, 16 Feb 2024 13:13:57 +0100 Subject: [PATCH] dont expect money from deleted users :-) --- src/model/user.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/model/user.rs b/src/model/user.rs index 906f9d8..bb44320 100644 --- a/src/model/user.rs +++ b/src/model/user.rs @@ -151,6 +151,9 @@ impl User { if !self.has_role(db, "Donau Linz").await { return None; } + if self.deleted { + return None; + } let mut fee = Fee::new();