From f761cbd9643431b0d3e3e0005fb8d0dcd9973b41 Mon Sep 17 00:00:00 2001 From: fengmk2 Date: Wed, 2 Jul 2025 18:13:15 +0800 Subject: [PATCH] chore(server): remove useless client allowGuestDemoWorkspace config (#12988) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### PR Dependency Tree * **PR #12988** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) ## Summary by CodeRabbit * **Chores** * Removed the configuration option that allowed guests to access demo workspaces. This affects related settings in the system configuration and admin interface. --- .docker/selfhost/schema.json | 5 ----- packages/backend/server/src/core/version/config.ts | 5 ----- packages/frontend/admin/src/config.json | 4 ---- 3 files changed, 14 deletions(-) diff --git a/.docker/selfhost/schema.json b/.docker/selfhost/schema.json index 613186b25e..55b057c55f 100644 --- a/.docker/selfhost/schema.json +++ b/.docker/selfhost/schema.json @@ -597,11 +597,6 @@ "type": "string", "description": "Allowed version range of the app that allowed to access the server. Requires 'client/versionControl.enabled' to be true to take effect.\n@default \">=0.20.0\"", "default": ">=0.20.0" - }, - "allowGuestDemoWorkspace": { - "type": "boolean", - "description": "Allow guests to access demo workspace.\n@default true", - "default": true } } }, diff --git a/packages/backend/server/src/core/version/config.ts b/packages/backend/server/src/core/version/config.ts index 2542ce517b..62047206e7 100644 --- a/packages/backend/server/src/core/version/config.ts +++ b/packages/backend/server/src/core/version/config.ts @@ -5,7 +5,6 @@ export interface VersionConfig { enabled: boolean; requiredVersion: string; }; - allowGuestDemoWorkspace?: boolean; } declare global { @@ -29,8 +28,4 @@ defineModuleConfig('client', { desc: "Allowed version range of the app that allowed to access the server. Requires 'client/versionControl.enabled' to be true to take effect.", default: '>=0.20.0', }, - allowGuestDemoWorkspace: { - desc: 'Allow guests to access demo workspace.', - default: true, - }, }); diff --git a/packages/frontend/admin/src/config.json b/packages/frontend/admin/src/config.json index 70f4f1c6f9..b9491a1f3a 100644 --- a/packages/frontend/admin/src/config.json +++ b/packages/frontend/admin/src/config.json @@ -211,10 +211,6 @@ "versionControl.requiredVersion": { "type": "String", "desc": "Allowed version range of the app that allowed to access the server. Requires 'client/versionControl.enabled' to be true to take effect." - }, - "allowGuestDemoWorkspace": { - "type": "Boolean", - "desc": "Allow guests to access demo workspace." } }, "captcha": {