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`}
- +