feat: add "permissions" key to response
This commit is contained in:
parent
fd7fc3c202
commit
b591e363b4
1 changed files with 5 additions and 0 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue