Can use backup routes from API

This commit is contained in:
2025-05-02 15:31:29 +02:00
parent e159d3c963
commit c68ddffc5e
9 changed files with 32 additions and 2 deletions

View File

@ -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(