From 6c12a51bab5f33663549f0835539a23722e64ef6 Mon Sep 17 00:00:00 2001 From: Serge Rider Date: Mon, 7 Sep 2020 20:25:29 +0300 Subject: [PATCH] CB-274 Server config save fix (force params overwrite) --- .../src/io/cloudbeaver/server/CBApplication.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/server/CBApplication.java b/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/server/CBApplication.java index a257175166..0f92aa77df 100644 --- a/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/server/CBApplication.java +++ b/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/server/CBApplication.java @@ -443,9 +443,9 @@ public class CBApplication extends BaseApplicationImpl { { json.name("app"); json.beginObject(); - if (appConfig.isAnonymousAccessEnabled()) JSONUtils.field(json, "anonymousAccessEnabled", true); - if (appConfig.isAuthenticationEnabled()) JSONUtils.field(json, "authenticationEnabled", true); - if (appConfig.isSupportsCustomConnections()) JSONUtils.field(json, "supportsCustomConnections", true); + JSONUtils.field(json, "anonymousAccessEnabled", appConfig.isAnonymousAccessEnabled()); + JSONUtils.field(json, "authenticationEnabled", appConfig.isAuthenticationEnabled()); + JSONUtils.field(json, "supportsCustomConnections", appConfig.isSupportsCustomConnections()); json.endObject(); } json.endObject();