Don't require user to have role in permissions/me

This commit is contained in:
rijkvanzanten
2020-10-19 11:17:51 -04:00
parent c3c18b5b9e
commit fa1674c41b

View File

@@ -49,7 +49,7 @@ router.get(
router.get(
'/me',
asyncHandler(async (req, res, next) => {
if (!req.accountability?.user || !req.accountability?.role) {
if (!req.accountability?.user) {
throw new InvalidCredentialsException();
}