Page MenuHomePhabricator

[keyserver] Fetch primary links only when a user is logged in
ClosedPublic

Authored by tomek on Jun 27 2023, 7:09 AM.
Tags
None
Referenced Files
F2187745: D8329.diff
Thu, Jul 4, 6:41 AM
Unknown Object (File)
Sat, Jun 29, 3:40 AM
Unknown Object (File)
Sat, Jun 29, 3:40 AM
Unknown Object (File)
Sat, Jun 29, 3:36 AM
Unknown Object (File)
Sat, Jun 29, 1:47 AM
Unknown Object (File)
Tue, Jun 18, 5:25 PM
Unknown Object (File)
Thu, Jun 13, 6:55 PM
Unknown Object (File)
Thu, Jun 13, 4:08 AM
Subscribers

Details

Summary

Calling userID getter on Viewer results in an exception when a user isn't logged in. A logged out user shouldn't have access to invite links, so we can return an empty array for them.

https://linear.app/comm/issue/ENG-4185/cant-open-web-app-if-not-already-logged-in-dev#comment-6dba4247

Test Plan

Open web app as a logged out user and check if it loads correctly. Log in and check if the links are fetched.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable