Skip to content

Commit ba616a6

Browse files
committed
PM-5065 - undo access control update
1 parent 75983c3 commit ba616a6

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

src/services/ChallengeService.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1716,18 +1716,6 @@ async function searchChallenges(currentUser, criteria) {
17161716
currentUser,
17171717
);
17181718
}
1719-
// When filtering by multiple project IDs, treat as having project manager access
1720-
// (the caller is expected to pass only project IDs the user has access to)
1721-
if (
1722-
!hasProjectManagerAccessForSearch &&
1723-
currentUser &&
1724-
!_hasAdminRole &&
1725-
!_isMachineToken &&
1726-
Array.isArray(criteria.projectIds) &&
1727-
criteria.projectIds.length > 0
1728-
) {
1729-
hasProjectManagerAccessForSearch = true;
1730-
}
17311719

17321720
let groupsToFilter = [];
17331721
let accessibleGroups = [];

0 commit comments

Comments
 (0)