From d0b7f9c76cf42710e4da60cffa9a397dbfe3ed45 Mon Sep 17 00:00:00 2001 From: philipp Date: Thu, 15 Feb 2024 22:29:08 +0100 Subject: [PATCH] dont sent deleted users a mail --- src/model/role.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/role.rs b/src/model/role.rs index 111b18b..f66120c 100644 --- a/src/model/role.rs +++ b/src/model/role.rs @@ -51,7 +51,7 @@ WHERE name like ? FROM user u JOIN user_role ur ON u.id = ur.user_id JOIN role r ON ur.role_id = r.id - WHERE r.id = {}", + WHERE r.id = {} AND deleted=0;", self.id );