0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-03-10 05:32:06 -05:00
forgejo/routers/web
Gusted 19be82b7ef
[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.

(cherry picked from commit 0b5db0dcc6)
(cherry picked from commit 30d168bcc8)
2024-01-22 18:13:42 +00:00
..
admin Fix some RPM registry flaws (#28782) 2024-01-19 11:37:10 +00:00
auth [GITEA] Allow changing the email address before activation 2024-01-22 18:13:41 +00:00
devtest
events
explore
feed [GITEA] Add repo empty check for branch feed 2024-01-22 18:13:40 +00:00
healthcheck Always enable caches (#28527) 2023-12-19 09:29:05 +00:00
misc [API] Forgejo API /api/forgejo/v1 2024-01-22 13:41:20 +00:00
org Rework markup link rendering (#26745) 2024-01-15 08:49:24 +00:00
repo [GITEA] Fix panic in canSoftDeleteContentHistory 2024-01-22 18:13:42 +00:00
shared [GITEA] Find README.md for user profiles case insensitively 2024-01-22 18:13:42 +00:00
user [GITEA] Fix NPE in UsernameSubRoute 2024-01-22 18:13:41 +00:00
base.go
githttp.go Add support for sha256 repositories (#23894) 2024-01-19 17:05:02 +01:00
goget.go
home.go
metrics.go
nodeinfo.go
swagger_json.go
web.go [FEAT] Repository flags 2024-01-22 18:13:42 +00:00
webfinger.go