Skip to content

Commit 721d68e

Browse files
authored
Update create.js
1 parent 85db099 commit 721d68e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/projectMembers/create.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module.exports = [
4040
}
4141

4242
if (PROJECT_MEMBER_ROLE.ACCOUNT_MANAGER === targetRole &&
43-
!util.hasRoles(req, [USER_ROLE.MANAGER, USER_ROLE.ACCOUNT_MANAGER])) {
43+
!util.hasRoles(req, [USER_ROLE.MANAGER, USER_ROLE.TOPCODER_ACCOUNT_MANAGER])) {
4444
const err = new Error(`Only manager or account manager is able to join as ${targetRole}`);
4545
err.status = 401;
4646
return next(err);
@@ -54,7 +54,7 @@ module.exports = [
5454
} else if (util.hasRoles(req, [USER_ROLE.MANAGER, USER_ROLE.CONNECT_ADMIN])) {
5555
targetRole = PROJECT_MEMBER_ROLE.MANAGER;
5656
} else if (util.hasRoles(req, [USER_ROLE.ACCOUNT_MANAGER])) {
57-
targetRole = PROJECT_MEMBER_ROLE.ACCOUNT_MANAGER;
57+
targetRole = PROJECT_MEMBER_ROLE.TOPCODER_ACCOUNT_MANAGER;
5858
} else if (util.hasRoles(req, [USER_ROLE.COPILOT, USER_ROLE.CONNECT_ADMIN])) {
5959
targetRole = PROJECT_MEMBER_ROLE.COPILOT;
6060
} else {

0 commit comments

Comments
 (0)