chore: revert unnecessary changes

This commit is contained in:
Rudy B. committed 2026-04-25 12:28:43 +02:00
1 parent cbd3aa2719
commit d14869efc7
2 files changed
+2 -10

No files matched your search

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