Skip to content

Commit 5013f7b

Browse files
committed
fix: allow PM to edit project members
1 parent e149c9a commit 5013f7b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ workflows:
149149
context : org-global
150150
filters:
151151
branches:
152-
only: ['develop', 'migration-setup']
152+
only: ['develop', 'migration-setup', 'pm-971_1']
153153
- deployProd:
154154
context : org-global
155155
filters:

src/permissions/constants.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ export const PERMISSION = { // eslint-disable-line import/prefer-default-export
384384
group: 'Project Member',
385385
description: 'Who can update project members with "customer" role.',
386386
},
387-
topcoderRoles: TOPCODER_ROLES_ADMINS,
387+
topcoderRoles: [...TOPCODER_ROLES_ADMINS, USER_ROLE.PROJECT_MANAGER],
388388
projectRoles: [
389389
...PROJECT_ROLES_MANAGEMENT,
390390
PROJECT_MEMBER_ROLE.COPILOT,
@@ -398,7 +398,7 @@ export const PERMISSION = { // eslint-disable-line import/prefer-default-export
398398
group: 'Project Member',
399399
description: 'Who can update project members with non "customer" role.',
400400
},
401-
topcoderRoles: TOPCODER_ROLES_ADMINS,
401+
topcoderRoles: [...TOPCODER_ROLES_ADMINS, USER_ROLE.PROJECT_MANAGER],
402402
projectRoles: PROJECT_ROLES_MANAGEMENT,
403403
scopes: SCOPES_PROJECT_MEMBERS_WRITE,
404404
},

0 commit comments

Comments
 (0)