mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-09-10 18:55:57 +03:00
Fix v2025.6.x clients and newer to delete items (#6004)
This commit is contained in:
committed by
GitHub
parent
6b9333b33e
commit
3b48e6e903
@@ -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 {
|
||||
|
Reference in New Issue
Block a user