diff --git a/cmd/bucket-object-lock.go b/cmd/bucket-object-lock.go index 465447b82..742a45dc5 100644 --- a/cmd/bucket-object-lock.go +++ b/cmd/bucket-object-lock.go @@ -93,7 +93,7 @@ func enforceRetentionBypassForDelete(ctx context.Context, r *http.Request, bucke if gerr != nil { // error from GetObjectInfo switch gerr.(type) { case MethodNotAllowed: // This happens usually for a delete marker - if oi.DeleteMarker { + if oi.DeleteMarker || !oi.VersionPurgeStatus.Empty() { // Delete marker should be present and valid. return ErrNone }