1
0
mirror of https://github.com/go-gitea/gitea synced 2024-11-10 17:25:54 +01:00
gitea/routers
Monty Taylor 9bde52ffc1 Fix 500 when getting user as unauthenticated user (#8653) (#8663)
Backport #8653

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 there is a panic
2019-10-25 13:09:15 +01:00
..
admin Fix password complexity regex for special characters (backport for v1.10.0) (#8524) 2019-10-16 11:09:27 +08:00
api/v1 Fix 500 when getting user as unauthenticated user (#8653) (#8663) 2019-10-25 13:09:15 +01:00
dev Display ui time with customize time location (#7792) 2019-08-15 22:46:21 +08:00
org Fix errors in create org UI regarding team access permission. (#8506) 2019-10-14 19:20:42 +01:00
private Move migrating repository from frontend to backend (#6200) 2019-10-13 21:23:14 +08:00
repo Fix bug on pull requests when transfer head repository (#8564) (#8569) 2019-10-19 08:29:35 +01:00
routes Move migrating repository from frontend to backend (#6200) 2019-10-13 21:23:14 +08:00
user Fix template error on account page (#8562) (#8622) 2019-10-22 10:08:59 +01: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) (#8651) 2019-10-23 18:27:10 -04:00
init.go Move migrating repository from frontend to backend (#6200) 2019-10-13 21:23:14 +08:00
install.go Move database settings from models to setting (#7806) 2019-08-24 11:24:45 +02:00
metrics.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
swagger_json.go Swagger.v1.json template (#3572) 2018-07-28 03:19:01 +03:00