Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions src/services/ChallengeService.js
Original file line number Diff line number Diff line change
Expand Up @@ -1716,18 +1716,6 @@ async function searchChallenges(currentUser, criteria) {
currentUser,
);
}
// When filtering by multiple project IDs, treat as having project manager access
// (the caller is expected to pass only project IDs the user has access to)
if (
!hasProjectManagerAccessForSearch &&
currentUser &&
!_hasAdminRole &&
!_isMachineToken &&
Array.isArray(criteria.projectIds) &&
criteria.projectIds.length > 0
) {
hasProjectManagerAccessForSearch = true;
}

let groupsToFilter = [];
let accessibleGroups = [];
Expand Down
Loading