aboutsummaryrefslogtreecommitdiff
path: root/src/post_routes.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/post_routes.rs')
-rw-r--r--src/post_routes.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/post_routes.rs b/src/post_routes.rs
index 311ee57..0374cae 100644
--- a/src/post_routes.rs
+++ b/src/post_routes.rs
@@ -111,7 +111,6 @@ async fn update_blob<C: Controller>(
if !controller.may_write_path(&ctx) {
return Err(Error::Unauthorized(
"you are not authorized to edit this file".into(),
- ctx,
));
}
let mut data: EditForm = body.into_form().await?;
@@ -162,7 +161,6 @@ async fn upload_blob<C: Controller>(
if !controller.may_write_path(&ctx) {
return Err(Error::Unauthorized(
"you are not authorized to edit this file".into(),
- ctx,
));
}
// Extract the `multipart/form-data` boundary from the headers.
@@ -206,7 +204,6 @@ async fn move_entry<C: Controller>(
if !controller.may_move_path(&ctx) {
return Err(Error::Unauthorized(
"you are not authorized to move this file".into(),
- ctx,
));
}
let mut data: MoveForm = body.into_form().await?;
@@ -288,7 +285,6 @@ async fn remove_entry<C: Controller>(
if !controller.may_move_path(&ctx) {
return Err(Error::Unauthorized(
"you are not authorized to remove this file".into(),
- ctx,
));
}
let data: RemoveForm = body.into_form().await?;
@@ -324,7 +320,6 @@ async fn diff_blob<C: Controller>(
if !controller.may_write_path(&ctx) {
return Err(Error::Unauthorized(
"you are not authorized to edit this file".into(),
- ctx,
));
}