forgejo/routers/web
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
..
admin Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
auth [GITEA] Allow changing the email address before activation 2024-01-08 17:05:47 +01:00
devtest
events
explore Allow to set explore page default sort (#27951) 2023-11-09 10:11:45 +00:00
feed [GITEA] Add repo empty check for branch feed 2024-01-08 16:59:19 +01:00
healthcheck Always enable caches (#28527) 2023-12-19 09:29:05 +00:00
misc [API] Forgejo API /api/forgejo/v1 2024-01-08 14:01:17 +01:00
org fix wrong link in user and organization profile when using relative url (#28617) 2023-12-27 08:32:27 +00:00
repo [GITEA] Fix panic in canSoftDeleteContentHistory 2024-01-13 21:41:03 +01:00
shared [GITEA] Find README.md for user profiles case insensitively 2024-01-08 17:12:06 +01:00
user [GITEA] Fix NPE in UsernameSubRoute 2024-01-08 17:05:47 +01:00
base.go
githttp.go Refactor CORS handler (#28587) 2023-12-25 20:13:18 +08:00
goget.go
home.go
metrics.go
nodeinfo.go
swagger_json.go
web.go [FEAT] Repository flags 2024-01-09 13:13:15 +01:00
webfinger.go