chore: revert unnecessary changes
This commit is contained in:
1 parent
cbd3aa2719
commit
d14869efc7
2 files changed
+2
-10
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user