fix sharetoken permissions on mixed boards

This commit is contained in:
Francis Cao committed 2026-04-13 11:32:47 -07:00
1 parent 5e6f88f123
commit a87d899e17
6 files changed
+44 -13

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ export async function canViewPixel({ user, shareToken }: Auth, pixelId: string)
return true;
}
if (shareToken?.pixelId === pixelId || shareToken?.websiteId === pixelId) {
if (shareToken?.pixelId === pixelId || shareToken?.websiteId === pixelId || shareToken?.pixelIds?.includes(pixelId)) {
return true;
}