Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-08-19 02:15:24 +02:00
policy data should be null
not an empty object
Dieser Commit ist enthalten in:
Ursprung
147c9c7b50
Commit
4d5c047ddc
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
|
@ -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 {
|
let policy = match OrgPolicy::find_by_org_and_type(org_id, pol_type_enum, &mut conn).await {
|
||||||
Some(p) => p,
|
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()))
|
Ok(Json(policy.to_json()))
|
||||||
|
|
Laden …
In neuem Issue referenzieren