File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/routes/projectMembers Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments