We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1a4f4a commit c558b5eCopy full SHA for c558b5e
src/api/user/user.service.ts
@@ -953,6 +953,10 @@ export class UserService {
953
this.logger.log('Primary Role to be saved: ' + primaryRole);
954
// assign primary role
955
await this.roleService.assignRoleByName(primaryRole, userId, userId);
956
+ // Assign 'Topcoder User' at the same time, to avoid weird issues after the first login
957
+ if (primaryRole == 'Topcoder Talent') {
958
+ await this.roleService.assignRoleByName('Topcoder User', userId, userId);
959
+ }
960
}
961
962
private async getNextUserId(): Promise<number> {
0 commit comments