Skip to content

Commit

Permalink
Merge pull request dani-garcia#3704 from BlackDex/remove-debug-code
Browse files Browse the repository at this point in the history
Remove debug code during attachment download
  • Loading branch information
dani-garcia authored Jul 17, 2023
2 parents ab65d79 + 4ec2507 commit 3dbfc48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async fn web_files(p: PathBuf) -> Cached<Option<NamedFile>> {

#[get("/attachments/<uuid>/<file_id>?<token>")]
async fn attachments(uuid: SafeString, file_id: SafeString, token: String) -> Option<NamedFile> {
let Ok(claims) = dbg!(decode_file_download(&token)) else { return None };
let Ok(claims) = decode_file_download(&token) else { return None };
if claims.sub != *uuid || claims.file_id != *file_id {
return None;
}
Expand Down

0 comments on commit 3dbfc48

Please sign in to comment.