Can upload files

This commit is contained in:
2025-04-09 21:12:47 +02:00
parent 84e1c57dc9
commit 61a4ea62c6
24 changed files with 342 additions and 61 deletions

View File

@ -144,7 +144,7 @@ impl FromRequest for AuthExtractor {
let authorized = (uri.starts_with("/api/account") && token.right_account)
|| (uri.starts_with("/api/movement") && token.right_movement)
|| (uri.starts_with("/api/inbox") && token.right_inbox)
|| (uri.starts_with("/api/attachment") && token.right_attachment)
|| (uri.starts_with("/api/file") && token.right_file)
|| (uri.starts_with("/api/auth/") && token.right_auth);
if !authorized {