Skip to content

Commit 96a3cc0

Browse files
committed
fix: show private challenge to project managers
1 parent 9c63f6b commit 96a3cc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/ChallengeService.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ async function searchChallenges(currentUser, criteria) {
601601
* For admins/m2m:
602602
* - All tasks will be returned
603603
*/
604-
if (currentUser && (_hasAdminRole || _.get(currentUser, "isMachine", false))) {
604+
if (currentUser && (_hasAdminRole || _hasProjectManagerRole || _.get(currentUser, "isMachine", false))) {
605605
// For admins/m2m, allow filtering based on task properties
606606
if (criteria.isTask) {
607607
boolQuery.push({ match_phrase: { "task.isTask": criteria.isTask } });

0 commit comments

Comments
 (0)