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
Unknown Object (File)
Sat, Nov 23, 2:23 PM
Unknown Object (File)
Sun, Nov 17, 7:43 AM
Unknown Object (File)
Sat, Nov 9, 4:23 AM
Unknown Object (File)
Sat, Nov 9, 4:22 AM
Unknown Object (File)
Sat, Nov 9, 3:39 AM
Unknown Object (File)
Fri, Nov 1, 4:10 AM
Unknown Object (File)
Oct 5 2024, 7:51 PM
Unknown Object (File)
Oct 5 2024, 7:07 PM
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