1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-10 20:24:24 +00:00
gitea/routers
Monty Taylor 66ceee08dc Fix 500 when getting user as unauthenticated user (#8662)
When doing GET /api/v1/users/{user} as an unauthenticated user,
gitea throws a 500 because it's trying to dereference elements
from the context user. It wants to do this to see whether to
show the primary email and will do that if the logged in user
is admin or the user in question. However, if ctx.User is nil,
go gets really unhappy.
2019-10-24 16:25:30 +08:00
..
admin Shadow the password on cache and session config on admin panel (#7300) 2019-06-27 00:12:38 +08:00
api/v1 Fix 500 when getting user as unauthenticated user (#8662) 2019-10-24 16:25:30 +08:00
dev Make time diff translatable (#2057) 2017-06-28 13:43:28 +08:00
org backport of #7385 - add missing template variable on organisation settings (#7386) 2019-07-08 21:03:44 +03:00
private Attempt to fix hook problem (#7856) 2019-08-14 17:43:02 +08:00
repo Add missed close in ServeBlobLFS (#8527) (#8543) 2019-10-17 00:05:23 +08:00
routes Change general form binding to gogs form (#8334) (#8402) 2019-10-07 00:20:07 -04:00
user Revert "[Backport] Fix issues/pr list broken when there are man… (#8425) 2019-10-08 18:12:41 +02:00
utils Slack webhook channel name cannot be empty or just contain an hashtag (#4786) 2018-09-10 10:31:08 -04:00
home.go Use AppSubUrl for more redirections (#8647) (#8652) 2019-10-23 18:26:54 -04:00
init.go Only check and config git on web subcommand but not others (#7236) 2019-06-19 19:53:37 +03:00
install.go Install page - Handle invalid administrator username better (#7060) 2019-05-28 07:18:40 +01:00
metrics.go routers: do not leak secrets via timing side channel (#7364) 2019-07-06 13:03:13 -04:00
swagger_json.go Swagger.v1.json template (#3572) 2018-07-28 03:19:01 +03:00