Closed
Description
Gitea Version
743-g7cc44491f
Git Version
No response
Operating System
No response
How are you running Gitea?
Tested on https://try.gitea.io
Database
No response
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Description
When subscribing a user through the API to an issue, it returns the following error when the operation is forbidden:
{
"message": "%!s(<nil>)",
"url": "https://try.gitea.io/api/swagger"
}
This is probably harmless but can be fixed to return an appropriate error message like so:
{
"message": "Only admin and user for itself can change subscription",
"url": "https://try.gitea.io/api/swagger"
}
The problem seems to be in this line:
I'll be happy to submit a patch to this effect!
Screenshots
Metadata
Metadata
Assignees
Labels
No labels