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

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

No files matched your search

+5
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 {