mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-09 03:11:51 +01:00
ee7b153dd9
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. |
||
---|---|---|
.. | ||
app.go | ||
email.go | ||
follower.go | ||
gpg_key.go | ||
key.go | ||
repo.go | ||
star.go | ||
user.go | ||
watch.go |