Can use backup routes from API
This commit is contained in:
@ -146,7 +146,8 @@ impl FromRequest for AuthExtractor {
|
||||
|| (uri.starts_with("/api/inbox") && token.right_inbox)
|
||||
|| (uri.starts_with("/api/file") && token.right_file)
|
||||
|| (uri.starts_with("/api/auth/") && token.right_auth)
|
||||
|| (uri.starts_with("/api/stats") && token.right_stats);
|
||||
|| (uri.starts_with("/api/stats") && token.right_stats)
|
||||
|| (uri.starts_with("/api/backup") && token.right_backup);
|
||||
|
||||
if !authorized {
|
||||
return Err(actix_web::error::ErrorBadRequest(
|
||||
|
Reference in New Issue
Block a user