[BUG]: Teams - Manage Members - User role - Owner of the team can not switch member to owners or owner to members
🐞 Bug Summary
Teams - Manage Members - User role - Owner of the team can not switch member to owners or owner to members
🧩 Affected Component
Select the area of the project impacted:
- [ ]
mcpgateway- API - [x]
mcpgateway- UI (admin panel) - [ ]
mcpgateway.wrapper- stdio wrapper - [ ] Federation or Transports
- [ ] CLI, Makefiles, or shell scripts
- [ ] Container setup (Docker/Podman/Compose)
- [ ] Other (explain below)
🔁 Steps to Reproduce
- User must not have Admin privileges
- Go to http://localhost:4444/admin/#teams
- Got a a Team where the user it's an owner
- Click Manage Members
- Try to switch member to owners or owner to members
🤔 Results
Nothing happens is the user closes the modal and opens it again.
🤔 Expected Behavior
Owner of the team should have the rights to switch member roles.
📓 Logs / Error Output
Paste any relevant stack traces or logs here. ⚠️ Do not paste secrets, credentials, or tokens.
🧠 Environment Info
You can retrieve most of this from the /version endpoint.
| Key | Value |
|---|---|
| Version or commit | v0.128.0 |
| Runtime | Python 3.12.3 |
| Platform / OS | Linux 6.6.87.2-microsoft-standard-WSL2 (x86_64) |
| Container | none |
🧩 Additional Context (optional)
Related to #2663
I've tested it with the latest changes. I did git pull the latest version and ran the app on https://locahost:4444/.
- I opened the
Manage Membersmodal where I can see a member.
-
I changed
MembertoOwnerin the dropdown. -
I checked if the member has a role of
Ownerand it has.
@IuliaGaitan - can you please retest it on the latest version? And let us know if you can still see the issue.
Tested on local environment. Now Show button is no longer available and the user can be added and roles can be switched - Save Changes active.