demo is just a constant, not a setting
This commit is contained in:
@@ -83,7 +83,7 @@ async function applyConfig(config) {
|
||||
async function setConfig(directoryServerConfig) {
|
||||
assert.strictEqual(typeof directoryServerConfig, '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 config = {
|
||||
enabled: directoryServerConfig.enabled,
|
||||
|
||||
Reference in New Issue
Block a user