0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-02-28 16:56:26 -05:00
forgejo/routers
Gusted ab1ccc55dc
[GITEA] Fix panic in canSoftDeleteContentHistory
- Backport of #2134
- 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.

(cherry picked from commit 0b5db0dcc6)
2024-01-13 22:05:35 +01:00
..
api Fix merging artifact chunks error when minio storage basepath is set (#28555) (#28568) 2023-12-22 12:10:03 +01:00
common
install Merge branch 'rebase-v1.21/forgejo-branding' into wip-v1.21-forgejo 2023-11-13 16:47:18 +01:00
private
utils
web [GITEA] Fix panic in canSoftDeleteContentHistory 2024-01-13 22:05:35 +01:00
init.go