gitea/routers/api/v1/user
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
..
app.go Remove legacy handling of drone token (#8191) 2019-09-17 15:13:24 +03:00
email.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
follower.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
gpg_key.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
key.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
repo.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00
star.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
user.go Fix 500 when getting user as unauthenticated user (#8653) (#8663) 2019-10-25 13:09:15 +01:00
watch.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00