honor DeleteAllVersions in list(), head() calls (#17604)

This commit is contained in:
Harshavardhana
2023-07-08 15:42:10 -07:00
committed by GitHub
parent 90c2129f44
commit f6186965c3
2 changed files with 10 additions and 3 deletions

View File

@@ -92,7 +92,7 @@ func (a Action) Delete() bool {
if a.DeleteRestored() {
return true
}
return a == DeleteVersionAction || a == DeleteAction
return a == DeleteVersionAction || a == DeleteAction || a == DeleteAllVersionsAction
}
// Lifecycle - Configuration for bucket lifecycle.