Merge branch 'domdomegg/support-no-data-org-policies' of https://github.com/domdomegg/vaultwarden into domdomegg-domdomegg/support-no-data-org-policies

This commit is contained in:
Daniel García 2021-09-26 23:21:24 +02:00
commit acab70ed89
No known key found for this signature in database
GPG key ID: FC8A7D14C3CD543A

View file

@ -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>")]