Do not allow unlinking from cloudron.io account in demo mode

This commit is contained in:
Johannes Zellner
2025-10-31 08:47:05 +01:00
parent 9643b7ed1b
commit a261d8b754
+2
View File
@@ -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();
}