forgejo/routers/api/v1
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
..
admin Password Complexity Checks (#6230) 2019-10-14 16:24:26 +01:00
convert Sign merges, CRUD, Wiki and Repository initialisation with gpg key (#7631) 2019-10-16 14:42:42 +01:00
misc Sign merges, CRUD, Wiki and Repository initialisation with gpg key (#7631) 2019-10-16 14:42:42 +01:00
org API endpoint for searching teams. (#8108) 2019-10-01 13:32:28 +08:00
repo Move issue label operations to issue service package (#8553) 2019-10-19 12:48:29 +03:00
swagger Add API endpoint for accessing repo topics (#7963) 2019-09-03 23:46:24 +08:00
user Fix 500 when getting user as unauthenticated user (#8653) 2019-10-24 09:18:41 +08:00
utils Implement webhook branch filter (#7791) 2019-09-09 08:48:21 +03:00
api.go Sign merges, CRUD, Wiki and Repository initialisation with gpg key (#7631) 2019-10-16 14:42:42 +01:00