From 0c296efede1ebb1eedb457f850464a7449cbc5e5 Mon Sep 17 00:00:00 2001 From: Ken Sternberg <133134217+kensternberg-authentik@users.noreply.github.com> Date: Fri, 20 Dec 2024 12:45:50 -0800 Subject: [PATCH] web, core: fix grammatical issue in stage bindings (#10799) Co-authored-by: Marc 'risson' Schmitt --- ...2_auto_20200908_1542_squashed_0017_auto_20210329_1334.py | 3 ++- ...0025_alter_flowstagebinding_evaluate_on_plan_and_more.py | 2 +- authentik/flows/models.py | 2 +- schema.yml | 6 +++--- web/src/admin/flows/StageBindingForm.ts | 2 +- web/src/user/LibraryApplication/index.ts | 2 +- 6 files changed, 9 insertions(+), 8 deletions(-) diff --git a/authentik/flows/migrations/0012_auto_20200908_1542_squashed_0017_auto_20210329_1334.py b/authentik/flows/migrations/0012_auto_20200908_1542_squashed_0017_auto_20210329_1334.py index 0c8b1d8b67..fc3132059c 100644 --- a/authentik/flows/migrations/0012_auto_20200908_1542_squashed_0017_auto_20210329_1334.py +++ b/authentik/flows/migrations/0012_auto_20200908_1542_squashed_0017_auto_20210329_1334.py @@ -88,7 +88,8 @@ class Migration(migrations.Migration): model_name="flowstagebinding", name="re_evaluate_policies", field=models.BooleanField( - default=False, help_text="Evaluate policies when the Stage is present to the user." + default=False, + help_text="Evaluate policies when the Stage is presented to the user.", ), ), migrations.AddField( diff --git a/authentik/flows/migrations/0025_alter_flowstagebinding_evaluate_on_plan_and_more.py b/authentik/flows/migrations/0025_alter_flowstagebinding_evaluate_on_plan_and_more.py index 82924be763..f82d48545c 100644 --- a/authentik/flows/migrations/0025_alter_flowstagebinding_evaluate_on_plan_and_more.py +++ b/authentik/flows/migrations/0025_alter_flowstagebinding_evaluate_on_plan_and_more.py @@ -20,7 +20,7 @@ class Migration(migrations.Migration): model_name="flowstagebinding", name="re_evaluate_policies", field=models.BooleanField( - default=True, help_text="Evaluate policies when the Stage is present to the user." + default=True, help_text="Evaluate policies when the Stage is presented to the user." ), ), ] diff --git a/authentik/flows/models.py b/authentik/flows/models.py index 69b794172b..2ee41f705c 100644 --- a/authentik/flows/models.py +++ b/authentik/flows/models.py @@ -227,7 +227,7 @@ class FlowStageBinding(SerializerModel, PolicyBindingModel): ) re_evaluate_policies = models.BooleanField( default=True, - help_text=_("Evaluate policies when the Stage is present to the user."), + help_text=_("Evaluate policies when the Stage is presented to the user."), ) invalid_response_action = models.TextField( diff --git a/schema.yml b/schema.yml index 5a76d4af7a..8b282577a5 100644 --- a/schema.yml +++ b/schema.yml @@ -42391,7 +42391,7 @@ components: description: Evaluate policies during the Flow planning process. re_evaluate_policies: type: boolean - description: Evaluate policies when the Stage is present to the user. + description: Evaluate policies when the Stage is presented to the user. order: type: integer maximum: 2147483647 @@ -42427,7 +42427,7 @@ components: description: Evaluate policies during the Flow planning process. re_evaluate_policies: type: boolean - description: Evaluate policies when the Stage is present to the user. + description: Evaluate policies when the Stage is presented to the user. order: type: integer maximum: 2147483647 @@ -48949,7 +48949,7 @@ components: description: Evaluate policies during the Flow planning process. re_evaluate_policies: type: boolean - description: Evaluate policies when the Stage is present to the user. + description: Evaluate policies when the Stage is presented to the user. order: type: integer maximum: 2147483647 diff --git a/web/src/admin/flows/StageBindingForm.ts b/web/src/admin/flows/StageBindingForm.ts index e188d17816..488cddf732 100644 --- a/web/src/admin/flows/StageBindingForm.ts +++ b/web/src/admin/flows/StageBindingForm.ts @@ -161,7 +161,7 @@ export class StageBindingForm extends ModelForm { ${msg("Evaluate when stage is run")}

- ${msg("Evaluate policies before the Stage is present to the user.")} + ${msg("Evaluate policies before the Stage is presented to the user.")}

()?.me; - return html` + return html`
${application.metaPublisher}