0
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden synced 2024-06-26 07:48:20 +02:00
bitwarden_rs/src/db/models
BlackDex 7dff8c01dd JSON Response updates and small fixes
Updated several json response models.
Also fixed a few small bugs.

ciphers.rs:
  - post_ciphers_create:
    * Prevent cipher creation to organization without a collection.
  - update_cipher_from_data:
    * ~~Fixed removal of user_uuid which prevent user-owned shared-cipher to be not editable anymore when set to read-only.~~
    * Cleanup the json_data by removing the `Response` key/values from several objects.
  - delete_all:
    * Do not delete all Collections during the Purge of an Organization (same as upstream).

cipher.rs:
  - Cipher::to_json:
    * Updated json response to match upstream.
    * Return empty json object if there is no type_data instead of values which should not be set for the type_data.

organizations.rs:
  * Added two new endpoints to prevent Javascript errors regarding tax

organization.rs:
  - Organization::to_json:
    * Updated response model to match upstream
  - UserOrganization::to_json:
    * Updated response model to match upstream

collection.rs:
  - Collection::{to_json, to_json_details}:
    * Updated the json response model, and added a detailed version used during the sync
  - hide_passwords_for_user:
    * Added this function to return if the passwords should be hidden or not for the user at the specific collection (used by `to_json_details`)

Update 1: Some small changes after comments from @jjlin.
Update 2: Fixed vault purge by user to make sure the cipher is not part of an organization.

Resolves #971
Closes #990, Closes #991
2021-01-31 21:46:37 +01:00
..
attachment.rs Fixed foreign-key (mariadb) errors. 2020-09-22 12:13:02 +02:00
cipher.rs JSON Response updates and small fixes 2021-01-31 21:46:37 +01:00
collection.rs JSON Response updates and small fixes 2021-01-31 21:46:37 +01:00
device.rs Show latest active device as last active on admin page 2020-12-03 17:07:32 +01:00
favorite.rs Delete associated favorites when deleting a cipher or user 2020-08-26 01:27:38 -07:00
folder.rs Fixed foreign-key (mariadb) errors. 2020-09-22 12:13:02 +02:00
mod.rs Fix Key Rotation during password change 2020-12-14 19:58:23 +01:00
org_policy.rs Add support for the Personal Ownership policy 2021-01-23 20:50:06 -08:00
organization.rs JSON Response updates and small fixes 2021-01-31 21:46:37 +01:00
two_factor.rs Fixed foreign-key (mariadb) errors. 2020-09-22 12:13:02 +02:00
user.rs Fix Key Rotation during password change 2020-12-14 19:58:23 +01:00