CB-982 Template connections edit fix

This commit is contained in:
Serge Rider
2021-05-28 15:29:53 +03:00
parent d6582c2e95
commit f4eb6161f2
@@ -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());