1
0
Fork 1
Spiegel von https://github.com/dani-garcia/vaultwarden.git synchronisiert 2024-07-02 12:14:41 +02:00

Fix collections and native app issue

Collections were not visible in the organization view.
This was because the `flexibleCollections` was set to `true`

Found an issue with loading some old created Secure Notes which had `{}`
as there `data` value. This isn't allowed. When detected, replace it
with `{"type":0}`

Fixes #4682
Dieser Commit ist enthalten in:
BlackDex 2024-06-28 17:37:03 +02:00
Ursprung a4c7fadbf4
Commit aee1070ed6
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 58C80A2AA6C765E1
2 geänderte Dateien mit 7 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -189,6 +189,12 @@ impl Cipher {
}
}
// Fix secure note issues when data is `{}`
// This breaks at least the native mobile clients
if self.atype == 2 && type_data_json == Value::Object(serde_json::Map::new()) {
type_data_json = json!({"type": 0});
}
// Clone the type_data and add some default value.
let mut data_json = type_data_json.clone();

Datei anzeigen

@ -406,7 +406,7 @@ impl UserOrganization {
"accessSecretsManager": false,
"limitCollectionCreationDeletion": true,
"allowAdminAccessToAllCollectionItems": true,
"flexibleCollections": true,
"flexibleCollections": false,
"permissions": permissions,