1
0
Fork 1
Spiegel von https://github.com/dani-garcia/vaultwarden.git synchronisiert 2024-11-22 05:10:29 +01:00

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

policy data should be `null` not an empty object
Dieser Commit ist enthalten in:
Mathijs van Veluw 2023-05-09 12:00:10 +02:00 committet von GitHub
Commit 83bf77d713
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

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