Skip to content

fix(PM-1139): show private challenge to project managers #741

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

hentrymartin
Copy link
Collaborator

@hentrymartin hentrymartin commented Apr 30, 2025

What's in this PR?

Ticket link - https://topcoder.atlassian.net/browse/PM-1139

@@ -601,7 +601,7 @@ async function searchChallenges(currentUser, criteria) {
* For admins/m2m:
* - All tasks will be returned
*/
if (currentUser && (_hasAdminRole || _.get(currentUser, "isMachine", false))) {
if (currentUser && (_hasAdminRole || _hasProjectManagerRole || _.get(currentUser, "isMachine", false))) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider verifying that _hasProjectManagerRole is correctly defined and initialized in the context of this function to ensure it accurately reflects the intended role check.

@hentrymartin
Copy link
Collaborator Author

As per discussion in standup, its not required to show private challenges to project managers so closing this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant