From 41dfbb06bd648afaf6e615a82e1388addfcaa896 Mon Sep 17 00:00:00 2001 From: Billy Batista Date: Wed, 10 Apr 2024 23:16:36 -0400 Subject: [PATCH] Fix bug for upload chunk authorization We need to check for a user id, not an email --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index d5a7b8d..1d29ced 100644 --- a/src/main.rs +++ b/src/main.rs @@ -302,7 +302,7 @@ async fn handle_upload_chunk( let mut authorizer = authorizer!( r#" - check if email($email); + check if user($user); check if rights($rights), $rights.contains("write"); allow if true; deny if false;