Skip to content

Commit

Permalink
CB-4231 fix initial data migration (#2120)
Browse files Browse the repository at this point in the history
Co-authored-by: Evgenia Bezborodova <[email protected]>
  • Loading branch information
alexander-skoblikov and EvgeniaBzzz authored Nov 10, 2023
1 parent c605981 commit f50df1f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
);
}
}
Expand Down

0 comments on commit f50df1f

Please sign in to comment.