From a261d8b75428a42c5ec57a1f77b51a1cf87d842f Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Fri, 31 Oct 2025 08:47:05 +0100 Subject: [PATCH] Do not allow unlinking from cloudron.io account in demo mode --- src/appstore.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/appstore.js b/src/appstore.js index 975cbbc1c..2ea936b7d 100644 --- a/src/appstore.js +++ b/src/appstore.js @@ -346,6 +346,8 @@ async function registerCloudron3() { async function unlinkAccount() { debug('unlinkAccount: Unlinking existing account.'); + if (constants.DEMO) throw new BoxError(BoxError.BAD_STATE, 'Not allowed in demo mode'); + await unregister(); return await registerCloudron3(); }