Do not allow unlinking from cloudron.io account in demo mode
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user