Can upload files
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user