Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.

Commit 79ea783

Browse files
committed
assign role after changing status
1 parent 6d0f180 commit 79ea783

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/appirio/tech/core/service/identity/resource/UserResource.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,6 +1337,7 @@ public ApiResponse updateStatus(
13371337
if(MemberStatus.UNVERIFIED == MemberStatus.getByValue(oldStatus) &&
13381338
MemberStatus.ACTIVE == MemberStatus.getByValue(user.getStatus())) {
13391339
notifyWelcome(userInDB);
1340+
assignDefaultUserRole(userInDB);
13401341
}
13411342

13421343
return ApiResponseFactory.createResponse(userInDB);

0 commit comments

Comments
 (0)