mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
site replication: Allow replication rule edit (#14969)
Revert commit b42cfcea60
as too
restrictive
This commit is contained in:
parent
fc08fcab52
commit
0e26f983d6
@ -1624,10 +1624,7 @@ func (api objectAPIHandlers) PutBucketReplicationConfigHandler(w http.ResponseWr
|
|||||||
writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
|
writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if globalSiteReplicationSys.isEnabled() {
|
|
||||||
writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrReplicationDenyEditError), r.URL)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if versioned := globalBucketVersioningSys.Enabled(bucket); !versioned {
|
if versioned := globalBucketVersioningSys.Enabled(bucket); !versioned {
|
||||||
writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrReplicationNeedsVersioningError), r.URL)
|
writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrReplicationNeedsVersioningError), r.URL)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user