mirror of
https://github.com/versity/versitygw.git
synced 2026-01-06 19:56:27 +00:00
Fixes #1574 When versioning is enabled at the gateway level and object lock is enabled for a bucket, any overwrite request on a locked object should succeed since it results in the creation of a new object version. This PR fixes the logic by adding a bucket versioning status check in `CheckObjectAccess`.