Closed
Description
Description
I have an issue created by User A.
I try to add an attachment via API for user B. User B is in a Team with write permissions for issues (and everything else)
When I do an sudo upload for user B i get the error:
user should have permission to write issue
But the user has the permission. When I login as user B and do it via the web interface everything works fine.
It only works via API when I give the team admin access.
Gitea Version
1.20.0+dev-919-gf9cfd6ce5
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?
docker
Database
MySQL