forgejo/routers/api/v1
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
..
admin add pagination for admin api get orgs and fix only list public orgs bug (#7742) (#7752) 2019-08-05 00:08:57 -04:00
convert Hide some user information via API if user have no enough permission (#8655) (#8658) 2019-10-24 09:01:40 +03:00
misc Add golangci (#6418) 2019-06-12 15:41:28 -04:00
org Fix team user api (#8172) (#8188) 2019-09-17 11:23:40 +08:00
repo Fix API for edit and delete release attachment (#8290) 2019-09-26 21:16:47 +08:00
swagger Fixes #7292 - API File Contents bug (#7301) 2019-06-29 16:51:10 -04:00
user Fix 500 when getting user as unauthenticated user (#8662) 2019-10-24 16:25:30 +08:00
utils Webhook Logs show proper HTTP Method, and allow change HTTP method in form (#6953) 2019-05-15 20:01:53 +08:00
api.go API should follow RequireSignInView (#8654) (#8661) 2019-10-24 14:57:24 +08:00