Skip to content

Commit e8fb805

Browse files
committed
fix: allow PM to delete users from project
1 parent 9502ce5 commit e8fb805

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/permissions/constants.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ export const PERMISSION = { // eslint-disable-line import/prefer-default-export
409409
group: 'Project Member',
410410
description: 'Who can delete project members with "customer" role.',
411411
},
412-
topcoderRoles: TOPCODER_ROLES_ADMINS,
412+
topcoderRoles: [...TOPCODER_ROLES_ADMINS, USER_ROLE.PROJECT_MANAGER],
413413
projectRoles: [
414414
...PROJECT_ROLES_MANAGEMENT,
415415
PROJECT_MEMBER_ROLE.COPILOT,
@@ -423,7 +423,7 @@ export const PERMISSION = { // eslint-disable-line import/prefer-default-export
423423
group: 'Project Member',
424424
description: 'Who can delete project members with some topcoder role like "manager" etc.',
425425
},
426-
topcoderRoles: TOPCODER_ROLES_ADMINS,
426+
topcoderRoles: [...TOPCODER_ROLES_ADMINS, USER_ROLE.PROJECT_MANAGER],
427427
projectRoles: PROJECT_ROLES_MANAGEMENT,
428428
scopes: SCOPES_PROJECT_MEMBERS_WRITE,
429429
},
@@ -437,6 +437,7 @@ export const PERMISSION = { // eslint-disable-line import/prefer-default-export
437437
topcoderRoles: [
438438
...TOPCODER_ROLES_ADMINS,
439439
USER_ROLE.COPILOT_MANAGER,
440+
USER_ROLE.PROJECT_MANAGER,
440441
],
441442
projectRoles: [
442443
...PROJECT_ROLES_MANAGEMENT,

0 commit comments

Comments
 (0)