Address board share review feedback
This commit is contained in:
1 parent
a5f4a39f2b
commit
c0193ad7cd
2 files changed
+20
-4
No files matched your search
@@ -21,7 +21,7 @@ export async function canViewBoardEntities(
|
||||
parameters: BoardParameters = {},
|
||||
) {
|
||||
const { websiteIds, pixelIds, linkIds } = getBoardEntityIds({ type, parameters });
|
||||
const userOnlyAuth: Auth = auth.user ? { user: auth.user } : {};
|
||||
const userOnlyAuth: Auth = { user: auth.user };
|
||||
const checks = [
|
||||
...websiteIds.map(id => checkBoardEntityAccess(canViewWebsite(userOnlyAuth, id))),
|
||||
...pixelIds.map(id => checkBoardEntityAccess(canViewPixel(userOnlyAuth, id))),
|
||||
|
||||
Reference in new issue
Block a user