diff --git a/src/pages/api/assignments/[id]/export.tsx b/src/pages/api/assignments/[id]/export.tsx index b57497f2..7ccf0e83 100644 --- a/src/pages/api/assignments/[id]/export.tsx +++ b/src/pages/api/assignments/[id]/export.tsx @@ -113,10 +113,6 @@ async function post(req: NextApiRequest, res: NextApiResponse) { return; } - if (data.assigner !== req.session.user.id) { - res.status(401).json({ok: false}); - return; - } if (data.pdf) { // if it does, return the pdf url const fileRef = ref(storage, data.pdf);