This commit is contained in:
Alex Auvolat
2022-05-12 11:21:23 +02:00
parent fc2f73ddb5
commit ed76893581
2 changed files with 6 additions and 16 deletions
-14
View File
@@ -369,20 +369,6 @@ pub async fn handle_delete_bucket(
.body(Body::empty())?)
}
pub async fn handle_bucket_allow_key(
garage: &Arc<Garage>,
req: Request<Body>,
) -> Result<Response<Body>, Error> {
handle_bucket_change_key_perm(garage, req, true).await
}
pub async fn handle_bucket_deny_key(
garage: &Arc<Garage>,
req: Request<Body>,
) -> Result<Response<Body>, Error> {
handle_bucket_change_key_perm(garage, req, false).await
}
pub async fn handle_bucket_change_key_perm(
garage: &Arc<Garage>,
req: Request<Body>,