forgejo/routers/web
Gusted 30d168bcc8
[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)
2024-01-15 16:51:45 +00:00
..
admin
auth [GITEA] Allow changing the email address before activation 2024-01-15 16:47:16 +00:00
devtest
events
explore
feed
healthcheck
misc
org
repo [GITEA] Fix panic in canSoftDeleteContentHistory 2024-01-15 16:51:45 +00:00
shared [GITEA] Find README.md for user profiles case insensitively 2024-01-15 16:51:45 +00:00
user [GITEA] Fix NPE in UsernameSubRoute 2024-01-15 16:47:17 +00:00
base.go
githttp.go
goget.go
home.go
metrics.go
nodeinfo.go
swagger_json.go
web.go [FEAT] Repository flags 2024-01-15 16:51:45 +00:00
webfinger.go