mirror of
https://github.com/documenso/documenso.git
synced 2025-11-14 00:32:43 +10:00
feat: wip
This commit is contained in:
@ -22,6 +22,24 @@ export const setRecipientsForDocument = async ({
|
||||
where: {
|
||||
id: documentId,
|
||||
userId,
|
||||
OR: [
|
||||
{
|
||||
team: {
|
||||
is: null,
|
||||
},
|
||||
},
|
||||
{
|
||||
team: {
|
||||
is: {
|
||||
members: {
|
||||
some: {
|
||||
userId,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user