commit acab70ed890a6df18880bbd50d8596fa28e368b1
parent c0d149060ff63543837a1422044f48d09f0afbca
Author: Daniel GarcĂa <dani-garcia@users.noreply.github.com>
Date: Sun, 26 Sep 2021 23:21:24 +0200
Merge branch 'domdomegg/support-no-data-org-policies' of https://github.com/domdomegg/vaultwarden into domdomegg-domdomegg/support-no-data-org-policies
Diffstat:
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>")]