diff --git a/server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/app/WebAppConfiguration.java b/server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/app/WebAppConfiguration.java index ca09529a49..0e8fb8ef26 100644 --- a/server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/app/WebAppConfiguration.java +++ b/server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/app/WebAppConfiguration.java @@ -44,6 +44,8 @@ public interface WebAppConfiguration { boolean isFeatureEnabled(String id); + String[] getEnabledFeatures(); + default boolean isSupportsCustomConnections() { return true; } diff --git a/server/bundles/io.cloudbeaver.service.security/src/io/cloudbeaver/service/security/CBEmbeddedSecurityController.java b/server/bundles/io.cloudbeaver.service.security/src/io/cloudbeaver/service/security/CBEmbeddedSecurityController.java index 806dbd4e6b..25b5b1c5a0 100644 --- a/server/bundles/io.cloudbeaver.service.security/src/io/cloudbeaver/service/security/CBEmbeddedSecurityController.java +++ b/server/bundles/io.cloudbeaver.service.security/src/io/cloudbeaver/service/security/CBEmbeddedSecurityController.java @@ -1153,6 +1153,12 @@ public List getTeamMembersInfo(@NotNull String teamId) throws } } + @Nullable + @Override + public String[] getEnableFeatures() { + return application.getAppConfiguration().getEnabledFeatures(); + } + @NotNull private SMTeam fetchTeam(ResultSet dbResult) throws SQLException { return new SMTeam(