diff options
author | Monty Taylor <mordred@inaugust.com> | 2019-10-25 21:09:15 +0900 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2019-10-25 13:09:15 +0100 |
commit | 9bde52ffc1bdfc6fcc3d2995776d60d8b42ce316 (patch) | |
tree | dea6815f13c6ea43e61aebbc25534789599b9cef /.golangci.yml | |
parent | fa03af8456b49ccca9ee2242d908e8fa6363f6c7 (diff) | |
download | gitea-9bde52ffc1bdfc6fcc3d2995776d60d8b42ce316.tar.gz gitea-9bde52ffc1bdfc6fcc3d2995776d60d8b42ce316.zip |
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
Diffstat (limited to '.golangci.yml')
0 files changed, 0 insertions, 0 deletions