mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
CB-346 Server rec-configuration allowance
This commit is contained in:
@@ -58,6 +58,8 @@ public class CBApplication extends BaseApplicationImpl {
|
||||
|
||||
private static final Log log = Log.getLog(CBApplication.class);
|
||||
|
||||
private static final boolean RECONFIGURATION_ALLOWED = true;
|
||||
|
||||
static {
|
||||
Log.setDefaultDebugStream(System.out);
|
||||
}
|
||||
@@ -407,7 +409,7 @@ public class CBApplication extends BaseApplicationImpl {
|
||||
String adminPassword,
|
||||
CBAppConfig appConfig) throws DBException
|
||||
{
|
||||
if (!isConfigurationMode()) {
|
||||
if (!RECONFIGURATION_ALLOWED && !isConfigurationMode()) {
|
||||
throw new DBException("Application must be in configuration mode");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user