Fix condition

This commit is contained in:
Jesús Ángel 2018-12-28 16:03:00 +01:00 committed by GitHub
parent 265c8123d7
commit a84d389417
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@ export class UpdateConfigurationFile {
} }
this.busy = true; this.busy = true;
const configuration = getConfiguration() || {}; const configuration = getConfiguration() || {};
if (!configuration['admin']) { if (!!configuration.admin) {
throw new Error('You are not authorized to update the configuration'); throw new Error('You are not authorized to update the configuration');
} }
const { key, value } = (input || {}).payload || {}; const { key, value } = (input || {}).payload || {};