Skip to content

Commit c42c1d4

Browse files
committed
fix: allow only copilots to apply for opportunity
1 parent 43dc20c commit c42c1d4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/constants.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ export const USER_ROLE = {
9090
PROJECT_MANAGER: 'Project Manager',
9191
TOPCODER_USER: 'Topcoder User',
9292
TG_ADMIN: 'tgadmin',
93+
TC_COPILOT: 'copilot',
9394
};
9495

9596
export const ADMIN_ROLES = [USER_ROLE.CONNECT_ADMIN, USER_ROLE.TOPCODER_ADMIN, USER_ROLE.TG_ADMIN];

src/permissions/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ export const PERMISSION = { // eslint-disable-line import/prefer-default-export
272272
description: 'Who can apply for copilot opportunity.',
273273
},
274274
topcoderRoles: [
275-
USER_ROLE.COPILOT,
275+
USER_ROLE.TC_COPILOT,
276276
],
277277
scopes: SCOPES_PROJECTS_WRITE,
278278
},

0 commit comments

Comments
 (0)