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:
@ -151,13 +151,13 @@ export class ApplicationForm extends ModelForm<Application, 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`}`,
|
||||
},
|
||||
|
||||
@ -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`}`,
|
||||
},
|
||||
|
||||
@ -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`}`,
|
||||
},
|
||||
|
||||
@ -47,6 +47,8 @@ export function ProviderToLabel(provider?: ProviderTypeEnum): string {
|
||||
return t`Generic OpenID Connect`;
|
||||
case ProviderTypeEnum.Okta:
|
||||
return "Okta";
|
||||
case ProviderTypeEnum.Patreon:
|
||||
return "Patreon";
|
||||
case ProviderTypeEnum.Reddit:
|
||||
return "Reddit";
|
||||
case ProviderTypeEnum.Twitter:
|
||||
|
||||
Reference in New Issue
Block a user