Skip to content

Commit 54bc5eb

Browse files
committed
rgw: fix the op in GetBucketPublicAccessBlock verify_permission
s3GetBucketPublicAccessBlock needs to be checked for RGWGetBucketPublicAccessBlock operation. Fixes: https://tracker.ceph.com/issues/64492 Signed-off-by: Seena Fallah <[email protected]>
1 parent db74c10 commit 54bc5eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rgw/rgw_op.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8983,7 +8983,7 @@ int RGWGetBucketPublicAccessBlock::verify_permission(optional_yield y)
89838983
if (has_s3_resource_tag)
89848984
rgw_iam_add_buckettags(this, s);
89858985

8986-
if (!verify_bucket_permission(this, s, rgw::IAM::s3GetBucketPolicy)) {
8986+
if (!verify_bucket_permission(this, s, rgw::IAM::s3GetBucketPublicAccessBlock)) {
89878987
return -EACCES;
89888988
}
89898989

0 commit comments

Comments
 (0)