allow scheckbuch finances editing via /user/fees
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
use std::{error::Error, fs};
|
||||
|
||||
use lettre::{
|
||||
Address, Message, SmtpTransport, Transport,
|
||||
message::{Attachment, MultiPart, SinglePart, header::ContentType},
|
||||
message::{header::ContentType, Attachment, MultiPart, SinglePart},
|
||||
transport::smtp::authentication::Credentials,
|
||||
Address, Message, SmtpTransport, Transport,
|
||||
};
|
||||
use sqlx::{Sqlite, SqlitePool, Transaction};
|
||||
|
||||
@ -162,7 +162,7 @@ impl Mail {
|
||||
}
|
||||
}
|
||||
|
||||
if user.has_role(db, "schnupperant").await {
|
||||
if user.has_role(db, "schnupperant").await || user.has_role(db, "scheckbuch").await {
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -279,7 +279,7 @@ Der Vorstand");
|
||||
}
|
||||
}
|
||||
|
||||
if user.has_role(db, "schnupperant").await {
|
||||
if user.has_role(db, "schnupperant").await || user.has_role(db, "scheckbuch").await {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user