Description
When you have an user with Packages: Read+Write access, he can't push to cargo registry if he does not have permission to the _cargo-index repo, returning a 500 error code.
I think at least we should change the error code for this, not sure if we should allow push for users without the repo write permissions still.
Gitea Version
1.21
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
https://gist.github.com/merlleu/50d26b2fe4dd1a1fb1ba9aa57d29c030
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
It is run from docker on the a587d25 commit's nightly build
Database
PostgreSQL