Page MenuHomePhabricator

D10308.id34521.diff
No OneTemporary

D10308.id34521.diff

diff --git a/keyserver/src/fetchers/link-fetchers.js b/keyserver/src/fetchers/link-fetchers.js
--- a/keyserver/src/fetchers/link-fetchers.js
+++ b/keyserver/src/fetchers/link-fetchers.js
@@ -19,7 +19,8 @@
FROM invite_links i
INNER JOIN threads c ON c.id = i.community
LEFT JOIN memberships m
- ON m.thread = i.community AND m.user = ${viewer.userID}
+ ON m.thread = i.community
+ AND m.user = ${viewer.loggedIn ? viewer.userID : null}
WHERE i.name = ${request.secret}
AND c.community IS NULL
`;

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 9, 6:12 PM (11 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2837475
Default Alt Text
D10308.id34521.diff (544 B)

Event Timeline