1
1
mirror of https://github.com/go-gitea/gitea synced 2024-10-31 23:34:25 +00:00
gitea/routers/api/v1/user
Monty Taylor ee7b153dd9 Fix 500 when getting user as unauthenticated user (#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,
go gets really unhappy.
2019-10-24 09:18:41 +08: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 Make /users/{username}/repos list private repos the current user has access to (#8621) 2019-10-23 19:46:32 +01: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) 2019-10-24 09:18:41 +08:00
watch.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00