fix(policy): address review feedback from #2018 (#2021)

Signed-off-by: 安正超 <anzhengchao@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
安正超
2026-03-01 11:05:20 +08:00
committed by GitHub
parent 595f916ba3
commit 7a83b818b8
4 changed files with 152 additions and 6 deletions
+5 -2
View File
@@ -938,8 +938,11 @@ impl S3Access for FS {
/// Checks whether the GetBucketLogging request has accesses to the resources.
///
/// This method returns `Ok(())` by default.
async fn get_bucket_logging(&self, _req: &mut S3Request<GetBucketLoggingInput>) -> S3Result<()> {
Ok(())
async fn get_bucket_logging(&self, req: &mut S3Request<GetBucketLoggingInput>) -> S3Result<()> {
let req_info = ext_req_info_mut(&mut req.extensions)?;
req_info.bucket = Some(req.input.bucket.clone());
authorize_request(req, Action::S3Action(S3Action::GetBucketLoggingAction)).await
}
/// Checks whether the GetBucketMetricsConfiguration request has accesses to the resources.