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 4d5c047ddcb4803d84765fb2fd93f9660ec6b4ef
parent 147c9c7b5093664f9e17f857d02bb7611c58d029
Author: Stefan Melmuk <stefan.melmuk@gmail.com>
Date:   Tue,  9 May 2023 11:14:39 +0200

policy data should be `null` not an empty object

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 @@ -1652,7 +1652,7 @@ async fn get_policy(org_id: &str, pol_type: i32, _headers: AdminHeaders, mut con let policy = match OrgPolicy::find_by_org_and_type(org_id, pol_type_enum, &mut conn).await { Some(p) => p, - None => OrgPolicy::new(String::from(org_id), pol_type_enum, "{}".to_string()), + None => OrgPolicy::new(String::from(org_id), pol_type_enum, "null".to_string()), }; Ok(Json(policy.to_json()))