fix: allow assigning cards to any member in a user's workspace

This commit is contained in:
Henry
2025-02-03 22:27:28 +00:00
parent eba5d9335c
commit 3ba600bc41
6 changed files with 49 additions and 16 deletions

View File

@@ -582,9 +582,11 @@ USING (
"workspaceMemberId" IN (
SELECT wm.id
FROM workspace_members wm
JOIN workspace w ON wm."workspaceId" = w.id
JOIN board b ON w.id = b."workspaceId"
WHERE wm."userId" = auth.uid()
WHERE wm."workspaceId" IN (
SELECT "workspaceId"
FROM workspace_members
WHERE "userId" = auth.uid()
)
)
);