Skip to content

bug: Mentorship admin is not able to perform manual matching on the admin portal #692

@nora-weisser

Description

@nora-weisser

The role designed to run manual matching, MENTORSHIP_ADMIN, cannot use the "Mentorship → Manual Matching" page. The page calls GET /admin/mentorship/matches/recommendations, which is the only endpoint on the controller gated by @RequiresRole({ADMIN, LEADER}) instead of @RequiresPermission(MATCH_MANAGE). MENTORSHIP_ADMIN holds MATCH_MANAGE and every sibling endpoint accepts them — this one returns 403.

Image

Steps to reproduce

  1. Log in as a user whose only role is MENTORSHIP_ADMIN.
  2. Open "Mentorship" in the top navigation.

Expected

/matches/recommendations allows MENTORSHIP_ADMIN like every other endpoint on the controller. All six tabs render data.

Actual

/matches/recommendations returns 403. The first three tabs (Recommendations, Unmatched Mentors, Unmatched Mentees) render misleading "Role denied." copy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ad-hocbugSomething isn't working

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions