mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
CB-982 Template connections edit fix
This commit is contained in:
+3
-3
@@ -276,9 +276,9 @@ public class WebServiceCore implements DBWServiceCore {
|
||||
public WebConnectionInfo updateConnection(@NotNull WebSession webSession, @NotNull WebConnectionConfig config) throws DBWebException {
|
||||
// Do not check for custom connection option. Already created connections can be edited.
|
||||
// Also template connections can be edited
|
||||
if (!CBApplication.getInstance().getAppConfiguration().isSupportsCustomConnections()) {
|
||||
throw new DBWebException("Connection edit is restricted by server configuration");
|
||||
}
|
||||
// if (!CBApplication.getInstance().getAppConfiguration().isSupportsCustomConnections()) {
|
||||
// throw new DBWebException("Connection edit is restricted by server configuration");
|
||||
// }
|
||||
DBPDataSourceRegistry sessionRegistry = webSession.getSingletonProject().getDataSourceRegistry();
|
||||
|
||||
WebConnectionInfo connectionInfo = webSession.getWebConnectionInfo(config.getConnectionId());
|
||||
|
||||
Reference in New Issue
Block a user