Skip to content

PM-5012: allow Work managers to load challenge resources#14

Merged
jmgasper merged 1 commit into
developfrom
PM-5012
May 12, 2026
Merged

PM-5012: allow Work managers to load challenge resources#14
jmgasper merged 1 commit into
developfrom
PM-5012

Conversation

@jmgasper
Copy link
Copy Markdown
Contributor

What was broken

TM/PM users opening Work challenge drafts could not load saved copilot and reviewer assignments because resource reads only returned submitters and the caller's own resources unless the caller had admin, copilot, or challenge-level full-access resource permissions.

Root cause

resource-api-v6 route access allowed manager users, but the service-level resource access check did not treat Work project/talent manager roles as resource managers.

What was changed

Added Work manager role recognition to the resource access check so project manager, topcoder project manager, talent manager, topcoder talent manager, and Connect Manager users can read the challenge resource rows the Work app uses to hydrate saved copilot and reviewer fields.

Any added/updated tests

Added getResources unit coverage for project manager and talent manager roles returning the full challenge resource list.

What was broken
TM/PM users opening Work challenge drafts could not load saved copilot and reviewer assignments because resource reads only returned submitters and the caller's own resources unless the caller had admin, copilot, or challenge-level full-access resource permissions.

Root cause
resource-api-v6 route access allowed manager users, but the service-level resource access check did not treat Work project/talent manager roles as resource managers.

What was changed
Added Work manager role recognition to the resource access check so project manager, topcoder project manager, talent manager, topcoder talent manager, and Connect Manager users can read the challenge resource rows the Work app uses to hydrate saved copilot and reviewer fields.

Any added/updated tests
Added getResources unit coverage for project manager and talent manager roles returning the full challenge resource list.
@jmgasper jmgasper merged commit 0a5e430 into develop May 12, 2026
3 of 4 checks passed
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