Removed condition that blocked admins/devs from exporting a pdf for assignment
This commit is contained in:
@@ -113,10 +113,6 @@ async function post(req: NextApiRequest, res: NextApiResponse) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.assigner !== req.session.user.id) {
|
|
||||||
res.status(401).json({ok: false});
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (data.pdf) {
|
if (data.pdf) {
|
||||||
// if it does, return the pdf url
|
// if it does, return the pdf url
|
||||||
const fileRef = ref(storage, data.pdf);
|
const fileRef = ref(storage, data.pdf);
|
||||||
|
|||||||
Reference in New Issue
Block a user