Skip to content

Commit

Permalink
Merge pull request #1767 from akto-api-security/hotfix/fix_rbac_inser…
Browse files Browse the repository at this point in the history
…tion_signup

Fixing role creation on every signup
  • Loading branch information
ankush-jain-akto authored Nov 25, 2024
2 parents 272705f + 7227ba0 commit 5f9ad21
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ private void createUserAndRedirect(String userEmail, String username, SignupInfo
throw new IllegalStateException("The account doesn't exist.");
}
} else {
if(!isSSOLogin){
if(!isSSOLogin && invitedRole != null && accountId != 0){
RBACDao.instance.insertOne(
new RBAC(user.getId(), invitedRole, accountId)
);
Expand Down

0 comments on commit 5f9ad21

Please sign in to comment.