policies: make policy engine modes consistent with database values (#5462)

* policies: make policy engine modes consistent with database values

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* fix in ui

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* fix missing case

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

---------

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L
2023-05-03 18:16:16 +03:00
committed by GitHub
parent da6e74a353
commit 3f607ee2c8
18 changed files with 992 additions and 1058 deletions

View File

@ -263,13 +263,13 @@ export class FlowForm extends ModelForm<Flow, string> {
<ak-radio
.options=${[
{
label: "ANY",
label: "any",
value: PolicyEngineMode.Any,
default: true,
description: html`${t`Any policy must match to grant access`}`,
},
{
label: "ALL",
label: "all",
value: PolicyEngineMode.All,
description: html`${t`All policies must match to grant access`}`,
},

View File

@ -225,13 +225,13 @@ export class StageBindingForm extends ModelForm<FlowStageBinding, string> {
<ak-radio
.options=${[
{
label: "ANY",
label: "any",
value: PolicyEngineMode.Any,
default: true,
description: html`${t`Any policy must match to grant access`}`,
},
{
label: "ALL",
label: "all",
value: PolicyEngineMode.All,
description: html`${t`All policies must match to grant access`}`,
},