From b17ec630c1e85519a6fce46d575d66f9237ce685 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 9 Oct 2023 15:09:11 +0100 Subject: [PATCH] Ensure user table editing is still allowed for old apps that are imported --- packages/server/src/api/controllers/application.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/server/src/api/controllers/application.ts b/packages/server/src/api/controllers/application.ts index 3797d1e966..4afd7b23f9 100644 --- a/packages/server/src/api/controllers/application.ts +++ b/packages/server/src/api/controllers/application.ts @@ -311,10 +311,13 @@ async function performAppCreate(ctx: UserCtx) { } }) - // Keep existing validation setting + // Keep existing feature flags if (!existing.features?.componentValidation) { newApplication.features!.componentValidation = false } + if (!existing.features?.disableUserMetadata) { + newApplication.features!.disableUserMetadata = false + } // Migrate navigation settings and screens if required if (existing) {