forgejo/routers
Gusted 0b5db0dcc6
[GITEA] Fix panic in canSoftDeleteContentHistory
- It's possible that `canSoftDeleteContentHistory` is called without
`ctx.Doer` being set, such as an anonymous user requesting the
`/content-history/detail` endpoint.
- Add a simple condition to always set to `canSoftDelete` to false if an
anonymous user is requesting this, this avoids a panic in the code that
assumes `ctx.Doer` is set.
- Added integration testing.
2024-01-13 21:41:03 +01:00
..
api [GITEA] POST /repos/{owner}/{repo}/pulls/{index}/reviews/{id}/comments 2024-01-10 23:28:41 +01:00
common Avoid cycle-redirecting user/login page (#28636) 2023-12-30 08:48:34 +00:00
install [GITEA] Add password length check on install page 2024-01-08 16:52:44 +01:00
private [CLI] implement forgejo-cli 2024-01-08 13:37:00 +01:00
utils Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
web [GITEA] Fix panic in canSoftDeleteContentHistory 2024-01-13 21:41:03 +01:00
init.go [API] Forgejo API /api/forgejo/v1 2024-01-08 14:01:17 +01:00