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 );