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(); }