vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit e3678b4b567a89d5a72af99fdf61d1b5f1eb18f4
parent b4c95fb4ac5176ffc17f408e15e12b6e19a17c71
Author: Adam Jones <domdomegg+git@gmail.com>
Date:   Fri, 24 Sep 2021 17:20:44 +0200

fix: Support no-data enterprise policies

Boolean-toggle enterprise policies (like 'Two-Step Login' and 'Personal Ownership') don't provide a data attribute in the new version of the web client. This updates the backend to expect these to be optional.

Web change introduced in https://github.com/bitwarden/web/pull/1147 which added https://github.com/bitwarden/web/blob/2cbe023a38792ff70a2a4907f4748354bb4e0573/src/app/organizations/policies/base-policy.component.ts#L48-L50

Diffstat:
Msrc/api/core/organizations.rs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/api/core/organizations.rs b/src/api/core/organizations.rs @@ -1183,7 +1183,7 @@ struct PolicyData { enabled: bool, #[serde(rename = "type")] _type: i32, - data: Value, + data: Option<Value>, } #[put("/organizations/<org_id>/policies/<pol_type>", data = "<data>")]