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