From 0e26f983d6b26a48a83d8c774bab3e07725a53e0 Mon Sep 17 00:00:00 2001 From: Poorna Date: Tue, 24 May 2022 13:27:33 -0700 Subject: [PATCH] site replication: Allow replication rule edit (#14969) Revert commit b42cfcea60aedddb300d46a371662b8d16574d6b as too restrictive --- cmd/bucket-handlers.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/bucket-handlers.go b/cmd/bucket-handlers.go index 9800e1671..e65772872 100644 --- a/cmd/bucket-handlers.go +++ b/cmd/bucket-handlers.go @@ -1624,10 +1624,7 @@ func (api objectAPIHandlers) PutBucketReplicationConfigHandler(w http.ResponseWr writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL) return } - if globalSiteReplicationSys.isEnabled() { - writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrReplicationDenyEditError), r.URL) - return - } + if versioned := globalBucketVersioningSys.Enabled(bucket); !versioned { writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrReplicationNeedsVersioningError), r.URL) return