Skip to content

Commit

Permalink
Fix bug for upload chunk authorization
Browse files Browse the repository at this point in the history
We need to check for a user id, not an email
  • Loading branch information
billyb2 committed Apr 11, 2024
1 parent 954475e commit 41dfbb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ async fn handle_upload_chunk<D: ChunkDatabase>(

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;
Expand Down

0 comments on commit 41dfbb0

Please sign in to comment.