From b591e363b4620dce1f16fc49f8eea6536c592028 Mon Sep 17 00:00:00 2001 From: qaz741wsd856 Date: Fri, 28 Nov 2025 13:43:43 +0800 Subject: [PATCH] feat: add "permissions" key to response --- src/models/cipher.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/models/cipher.rs b/src/models/cipher.rs index 200ab60..b70c023 100644 --- a/src/models/cipher.rs +++ b/src/models/cipher.rs @@ -161,6 +161,11 @@ impl Serialize for Cipher { response_map.insert("favorite".to_string(), json!(self.favorite)); response_map.insert("edit".to_string(), json!(self.edit)); response_map.insert("viewPassword".to_string(), json!(self.view_password)); + // new key "permissions" used by clients since v2025.6.0 + response_map.insert("permissions". to_string(), json! ({ + "delete": self.edit, // if edit is true, allow delete + "restore": self.edit, // if edit is true, allow restore + })); response_map.insert( "organizationUseTotp".to_string(), json!(self.organization_use_totp),