Skip to content

Commit 1695020

Browse files
committed
fix: permissions to view private posts
ref issue #2841
1 parent c0c313e commit 1695020

File tree

2 files changed

+3
-25
lines changed

2 files changed

+3
-25
lines changed

docs/permissions.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -382,16 +382,12 @@ <h2 class="anchor-container">
382382
</div>
383383
<div class="col-9 py-2">
384384
<div>
385-
<span class="badge badge-primary" title="Allowed Project Role">copilot</span>
385+
<span class="badge badge-primary" title="Allowed Project Role">copilot,manager,account_manager,account_executive,project_manager,program_manager,solution_architect</span>
386386
</div>
387387

388388
<div>
389389
<span class="badge badge-success" title="Allowed Topcoder Role">administrator</span>
390390
<span class="badge badge-success" title="Allowed Topcoder Role">Connect Admin</span>
391-
<span class="badge badge-success" title="Allowed Topcoder Role">Connect Manager</span>
392-
<span class="badge badge-success" title="Allowed Topcoder Role">Program Manager</span>
393-
<span class="badge badge-success" title="Allowed Topcoder Role">Solution Architect</span>
394-
<span class="badge badge-success" title="Allowed Topcoder Role">Project Manager</span>
395391
</div>
396392
</div>
397393
</div>

src/config/permissions.js

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -88,24 +88,6 @@ const TOPCODER_ADMINS = [
8888
ROLE_CONNECT_ADMIN,
8989
]
9090

91-
/**
92-
* Topcoder Manager level roles.
93-
*/
94-
const TOPCODER_MANAGERS = [
95-
ROLE_CONNECT_MANAGER,
96-
ROLE_PROGRAM_MANAGER,
97-
ROLE_SOLUTION_ARCHITECT,
98-
ROLE_PROJECT_MANAGER,
99-
]
100-
101-
/**
102-
* Topcoder Admin & Manager level roles.
103-
*/
104-
const TOPCODER_MANAGERS_AND_ADMINS = [
105-
...TOPCODER_ADMINS,
106-
...TOPCODER_MANAGERS,
107-
]
108-
10991
/**
11092
* All Topcoder Roles
11193
*/
@@ -340,10 +322,10 @@ export const PERMISSIONS = {
340322
title: 'Access private posts',
341323
},
342324
projectRoles: [
343-
PROJECT_ROLE_COPILOT,
325+
..._.difference(PROJECT_ALL, [PROJECT_ROLE_CUSTOMER])
344326
],
345327
topcoderRoles: [
346-
...TOPCODER_MANAGERS_AND_ADMINS,
328+
...TOPCODER_ADMINS,
347329
]
348330
},
349331

0 commit comments

Comments
 (0)