From 91ffe4e7f9585f37eca91649de13d222070526e1 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 23 Jan 2023 14:04:42 +0100 Subject: [PATCH] stages/user_write: fix migration setting wrong value, fix form Signed-off-by: Jens Langhammer --- .../0007_remove_userwritestage_can_create_users_and_more.py | 4 ++-- web/src/admin/stages/user_write/UserWriteStageForm.ts | 2 +- website/docs/releases/2023/v2023.1.md | 4 ++++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/authentik/stages/user_write/migrations/0007_remove_userwritestage_can_create_users_and_more.py b/authentik/stages/user_write/migrations/0007_remove_userwritestage_can_create_users_and_more.py index 7b55c1ba2..6e27efd7e 100644 --- a/authentik/stages/user_write/migrations/0007_remove_userwritestage_can_create_users_and_more.py +++ b/authentik/stages/user_write/migrations/0007_remove_userwritestage_can_create_users_and_more.py @@ -11,9 +11,9 @@ def migrate_to_user_creation_mode(apps: Apps, schema_editor: BaseDatabaseSchemaE for stage in UserWriteStage.objects.using(schema_editor.connection.alias).all(): if stage.can_create_users: - stage.user_creation_mode = UserCreationMode.NEVER_CREATE - else: stage.user_creation_mode = UserCreationMode.CREATE_WHEN_REQUIRED + else: + stage.user_creation_mode = UserCreationMode.NEVER_CREATE stage.save() diff --git a/web/src/admin/stages/user_write/UserWriteStageForm.ts b/web/src/admin/stages/user_write/UserWriteStageForm.ts index 24aa68276..3ecc2d4d6 100644 --- a/web/src/admin/stages/user_write/UserWriteStageForm.ts +++ b/web/src/admin/stages/user_write/UserWriteStageForm.ts @@ -61,7 +61,7 @@ export class UserWriteStageForm extends ModelForm { ${t`Stage-specific settings`}
- +