SIGN IN SIGN UP

fix(api): check for nil user before using the result

The current-user and categories handlers used the value returned by
UserByID without checking whether it was nil. Since UserByID returns no
error when the user does not exist, the categories handler could
dereference a nil user. Return a not found response when the user is nil.
F
Frédéric Guillot committed
2ac3073583602a9894d00ecf4103366c250fd9f1
Parent: ae6ac73