Fixed authentication issues

This commit is contained in:
Jori Lallo
2016-05-30 22:56:49 -07:00
parent f79285a51e
commit 01f026712e
2 changed files with 2 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ router.post('documents.info', auth({ require: false }), async (ctx) => {
const team = await ctx.state.user.getTeam();
if (document.teamId !== team.id) {
if (!document) throw httpErrors.NotFound();
throw httpErrors.NotFound();
}
ctx.body = {