Skip to content

Commit

Permalink
Ensure root is always admin
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexProgrammerDE committed Dec 29, 2024
1 parent 06c2b74 commit 2a77971
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ private UUID createRootUser() {

return rootUser.id();
} else {
currentRootUser.role(UserEntity.Role.ADMIN);
s.merge(currentRootUser);

return currentRootUser.id();
}
});
Expand Down

0 comments on commit 2a77971

Please sign in to comment.