mirror of
https://github.com/minio/minio.git
synced 2026-05-08 05:36:36 +02:00
Fix missing authorization check for PutObjectRetentionHandler (#20929)
Some checks failed
VulnCheck / Analysis (push) Has been cancelled
Some checks failed
VulnCheck / Analysis (push) Has been cancelled
This commit is contained in:
parent
447054b841
commit
437dd4e32a
@ -2884,6 +2884,12 @@ func (api objectAPIHandlers) PutObjectRetentionHandler(w http.ResponseWriter, r
|
||||
return
|
||||
}
|
||||
|
||||
// Check permissions to perform this object retention operation
|
||||
if s3Err := checkRequestAuthType(ctx, r, policy.PutObjectRetentionAction, bucket, object); s3Err != ErrNone {
|
||||
writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Err), r.URL)
|
||||
return
|
||||
}
|
||||
|
||||
cred, owner, s3Err := validateSignature(getRequestAuthType(r), r)
|
||||
if s3Err != ErrNone {
|
||||
writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Err), r.URL)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user