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 83bf77d713f723ff40550f30c18e759dae9e496e
parent 147c9c7b5093664f9e17f857d02bb7611c58d029
Author: Mathijs van Veluw <black.dex@gmail.com>
Date:   Tue,  9 May 2023 12:00:10 +0200

Merge pull request #3513 from stefan0xC/fix-empty-policy

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()))