Closed
Description
Description
When using the API endpoint /orgs/{org}/public_members/{username}
with the PUT or DELETE methods as an admin user, it returns error 403 with the message Cannot publicize another member
. The same happens when authenticated as an owner of the organization. However, if I try to do the same action via the web API, it works. I would expect that the API would not forbid me from actions I can take without issue via the web interface.
Gitea Version
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
The problem first occured on a binary downloaded from the official website, then confirmed on a binary self-built from the main branch.
Database
SQLite