mirror of
https://github.com/documenso/documenso.git
synced 2025-11-25 14:11:43 +10:00
getDocument recfactor, qoc
This commit is contained in:
@ -21,10 +21,7 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) {
|
||||
return;
|
||||
}
|
||||
|
||||
const document: PrismaDocument = await getDocument(+documentId, {
|
||||
res: res,
|
||||
req: req,
|
||||
});
|
||||
const document: PrismaDocument = await getDocument(+documentId, req, res);
|
||||
|
||||
// todo encapsulate entity ownerships
|
||||
if (document.userId !== user.id) {
|
||||
|
||||
Reference in New Issue
Block a user