1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-15 06:34:25 +00:00
gitea/routers/api/v1/user
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
..
app.go Change drone token name to let users know to use oauth2 (#6912) 2019-05-12 13:29:07 -04:00
email.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00
follower.go fix wrong email when use gitea as OAuth2 provider (#7640) (#7647) 2019-07-27 17:25:16 +03:00
gpg_key.go Add golangci (#6418) 2019-06-12 15:41:28 -04:00
key.go fix wrong email when use gitea as OAuth2 provider (#7640) (#7647) 2019-07-27 17:25:16 +03:00
repo.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00
star.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00
user.go Fix 500 when getting user as unauthenticated user (#8662) 2019-10-24 16:25:30 +08:00
watch.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00