Skip to content

Commit fc272ce

Browse files
committed
add roles that can join as manager
1 parent dd7a3bf commit fc272ce

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/routes/projectMembers/create.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,14 @@ module.exports = [
8181
USER_ROLE.TOPCODER_ACCOUNT_MANAGER,
8282
USER_ROLE.BUSINESS_DEVELOPMENT_REPRESENTATIVE,
8383
USER_ROLE.PRESALES,
84+
USER_ROLE.ACCOUNT_EXECUTIVE,
85+
USER_ROLE.PROGRAM_MANAGER,
86+
USER_ROLE.SOLUTION_ARCHITECT,
87+
USER_ROLE.PROJECT_MANAGER,
8488
])) {
8589
const err = new Error(
86-
`Only manager, account manager, business development representative,
87-
or presales are able to join as ${targetRole}`,
90+
// eslint-disable-next-line max-len
91+
`Only manager, account manager, business development representative, account executive, program manager, project manager, solution architect, or presales are able to join as ${targetRole}`,
8892
);
8993
err.status = 401;
9094
return next(err);

0 commit comments

Comments
 (0)