Open
Description
versions
- Gitea version : 2.16.5
- Git version: 1.10
- Operating system: linux
- Database (use
[x]
):- MySQL
- Can you reproduce the bug at https://try.gitea.io:
- Yes
Description
I'm got a site with docs as code using a static site
generator.
It gives the end user an edit button.
The edit button takes them to the repo at this URL:
https://gitea.example.com/org/project/_edit/master/docs/index.md
This opens and works fine, if the user has write access to the repo.
If the user does have write access to the repo all is well and one can
edit the doc and save to master.
If one has read access but not write to repo this however fails with a 404.
On GitLab/GitHub, instead the page renders and in the background a
fork is automatically created and a PR is submitted to origin.