Skip to content

Commit 7f915c2

Browse files
author
Maksym Mykhailenko
committed
fix: project team management permission
1 parent aacdb95 commit 7f915c2

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/config/permissions.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,10 @@ const TOPCODER_ALL = [
125125
]
126126

127127
/**
128-
* Project non-customer members
128+
* All Project Roles
129129
*/
130-
const PROJECT_NON_CUSTOMER_MEMBERS = [
130+
const PROJECT_ALL = [
131+
PROJECT_ROLE_CUSTOMER,
131132
PROJECT_ROLE_COPILOT,
132133
PROJECT_ROLE_MANAGER,
133134
PROJECT_ROLE_ACCOUNT_MANAGER,
@@ -187,7 +188,7 @@ export default {
187188
description: 'Invite new members or delete them. There are some additional restrictions for some roles.',
188189
},
189190
projectRoles: [
190-
..._.difference(TOPCODER_ALL, [ROLE_TOPCODER_USER, ROLE_CONNECT_COPILOT])
191+
..._.difference(PROJECT_ALL, [PROJECT_ROLE_COPILOT, PROJECT_ROLE_CUSTOMER])
191192
],
192193
topcoderRoles: [
193194
...TOPCODER_ADMINS
@@ -309,11 +310,9 @@ export default {
309310
group: 'My Projects Filter',
310311
title: 'My Projects Filter',
311312
},
312-
allowRule: {
313-
topcoderRoles: [
314-
..._.difference(TOPCODER_ALL, [ROLE_CONNECT_COPILOT, ROLE_TOPCODER_USER])
315-
]
316-
}
313+
topcoderRoles: [
314+
..._.difference(TOPCODER_ALL, [ROLE_CONNECT_COPILOT, ROLE_TOPCODER_USER])
315+
]
317316
},
318317

319318
/*

0 commit comments

Comments
 (0)