geforkt von mirrored/vaultwarden
fix: Support no-data enterprise policies
Boolean-toggle enterprise policies (like 'Two-Step Login' and 'Personal Ownership') don't provide a data attribute in the new version of the web client. This updates the backend to expect these to be optional.
Web change introduced in https://github.com/bitwarden/web/pull/1147 which added 2cbe023a38/src/app/organizations/policies/base-policy.component.ts (L48-L50)
Dieser Commit ist enthalten in:
Ursprung
b4c95fb4ac
Commit
e3678b4b56
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
|
@ -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>")]
|
||||
|
|
Laden …
In neuem Issue referenzieren