fix: visiblity

This commit is contained in:
David Nguyen
2025-06-13 00:05:08 +10:00
parent 614106a5e4
commit 12fe045195

View File

@ -85,6 +85,7 @@ export const getDocumentWhereInput = async ({
const documentOrInput: Prisma.DocumentWhereInput[] = [
{
userId: userId,
teamId: team.id,
},
];
@ -149,7 +150,7 @@ export const getDocumentWhereInput = async ({
return {
documentWhereInput: {
...documentWhereInput,
OR: [...visibilityFilters],
// OR: [...visibilityFilters],
},
team,
};