A versioned delete carries a non-empty version-id, but the MFA guard
flagged the empty case: versioned deletes bypassed MFA while plain
deletes wrongly required it. Test !instance.empty().
Fixes: https://tracker.ceph.com/issues/77869
Signed-off-by: Sun Yuechi <sunyuechi@iscas.ac.cn>
bool has_versioned = false;
for (auto object : multi_delete->objects) {
const string& instance = object.get_version_id();
- if (instance.empty()) {
+ if (!instance.empty()) {
has_versioned = true;
break;
}