mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-06 18:05:20 +00:00
Fix condition
This commit is contained in:
parent
265c8123d7
commit
a84d389417
@ -62,7 +62,7 @@ export class UpdateConfigurationFile {
|
||||
}
|
||||
this.busy = true;
|
||||
const configuration = getConfiguration() || {};
|
||||
if (!configuration['admin']) {
|
||||
if (!!configuration.admin) {
|
||||
throw new Error('You are not authorized to update the configuration');
|
||||
}
|
||||
const { key, value } = (input || {}).payload || {};
|
||||
|
Loading…
Reference in New Issue
Block a user