mirror of
https://github.com/documenso/documenso.git
synced 2026-07-17 00:30:21 +10:00
fix: invalid folder queries (#1898)
Currently the majority of folder mutations only work if the user is the owner of the folder.
This commit is contained in:
@@ -1432,7 +1432,6 @@ const updateDocument = async ({
|
||||
return await prisma.document.update({
|
||||
where: {
|
||||
id: documentId,
|
||||
userId,
|
||||
team: buildTeamWhereQuery({ teamId, userId }),
|
||||
},
|
||||
data: {
|
||||
|
||||
Reference in New Issue
Block a user