demo is just a constant, not a setting
This commit is contained in:
@@ -71,7 +71,7 @@ async function getConfig() {
|
||||
async function setConfig(newConfig) {
|
||||
assert.strictEqual(typeof newConfig, 'object');
|
||||
|
||||
if (settings.isDemo()) throw new BoxError(BoxError.BAD_FIELD, 'Not allowed in demo mode');
|
||||
if (constants.DEMO) throw new BoxError(BoxError.BAD_FIELD, 'Not allowed in demo mode');
|
||||
|
||||
const currentConfig = await getConfig();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user