fix sharetoken permissions on mixed boards
This commit is contained in:
1 parent
5e6f88f123
commit
a87d899e17
6 files changed
+44
-13
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user