1
1
mirror of https://github.com/go-gitea/gitea synced 2024-10-01 00:34:07 +00:00
gitea/routers/api/v1
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 Password Complexity Checks (#6230) 2019-10-14 16:24:26 +01:00
convert Hide some user information via API if user have no enough permission (#8655) (#8657) 2019-10-24 08:59:53 +03:00
misc Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
org API endpoint for searching teams. (#8108) 2019-10-01 13:32:28 +08:00
repo Fix bug on pull requests when transfer head repository (#8564) (#8569) 2019-10-19 08:29:35 +01:00
swagger Add API endpoint for accessing repo topics (#7963) 2019-09-03 23:46:24 +08:00
user Fix 500 when getting user as unauthenticated user (#8653) (#8663) 2019-10-25 13:09:15 +01:00
utils Implement webhook branch filter (#7791) 2019-09-09 08:48:21 +03:00
api.go API endpoint for searching teams. (#8108) 2019-10-01 13:32:28 +08:00