0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-02-22 22:06:21 -05:00
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
install [GITEA] Add password length check on install page 2024-01-08 16:52:44 +01:00
private
utils
web [GITEA] Fix panic in canSoftDeleteContentHistory 2024-01-13 21:41:03 +01:00
init.go