Browse Source

constants

pull/7479/head
chrislu 3 weeks ago
parent
commit
16ce9f0b35
  1. 4
      weed/s3api/s3_iam_middleware.go

4
weed/s3api/s3_iam_middleware.go

@ -376,9 +376,9 @@ func mapLegacyActionToIAM(legacyAction Action) string {
case s3_constants.ACTION_ABORT_MULTIPART:
return "s3:AbortMultipartUpload"
case s3_constants.ACTION_LIST_MULTIPART_UPLOADS:
return "s3:ListMultipartUploads"
return s3_constants.S3_ACTION_LIST_MULTIPART_UPLOADS
case s3_constants.ACTION_LIST_PARTS:
return "s3:ListParts"
return s3_constants.S3_ACTION_LIST_PARTS
default:
// If it's already a properly formatted S3 action, return as-is

Loading…
Cancel
Save