From f50df1f8598af98497e51fa55a22936eacfddfc8 Mon Sep 17 00:00:00 2001 From: Alexander Skoblikov Date: Fri, 10 Nov 2023 13:27:38 +0100 Subject: [PATCH] CB-4231 fix initial data migration (#2120) Co-authored-by: Evgenia Bezborodova <139753579+EvgeniaBzzz@users.noreply.github.com> --- .../src/io/cloudbeaver/service/security/db/CBDatabase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/bundles/io.cloudbeaver.service.security/src/io/cloudbeaver/service/security/db/CBDatabase.java b/server/bundles/io.cloudbeaver.service.security/src/io/cloudbeaver/service/security/db/CBDatabase.java index ff14ecb78a..778b52cd13 100644 --- a/server/bundles/io.cloudbeaver.service.security/src/io/cloudbeaver/service/security/db/CBDatabase.java +++ b/server/bundles/io.cloudbeaver.service.security/src/io/cloudbeaver/service/security/db/CBDatabase.java @@ -426,11 +426,11 @@ public void close() throws SQLException { // Create teams for (SMTeam team : initialTeams) { adminSecurityController.createTeam(team.getTeamId(), team.getName(), team.getDescription(), adminName); - if (adminName != null && !application.isMultiNode()) { + if (!application.isMultiNode()) { adminSecurityController.setSubjectPermissions( team.getTeamId(), new ArrayList<>(team.getPermissions()), - adminName + "initial-data-configuration" ); } }