Fix v2025.6.x clients and newer to delete items (#6004)

This commit is contained in:
Mathijs van Veluw
2025-07-01 10:33:22 +02:00
committed by GitHub
parent 6b9333b33e
commit 3b48e6e903
3 changed files with 12 additions and 7 deletions

View File

@@ -382,6 +382,11 @@ impl Cipher {
// the "Read Only" or "Hide Passwords" restrictions for the user.
json_object["edit"] = json!(!read_only);
json_object["viewPassword"] = json!(!hide_passwords);
// The new key used by clients since v2025.6.0
json_object["permissions"] = json!({
"delete": !read_only,
"restore": !read_only,
});
}
let key = match self.atype {