@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

When rendering the "you were invited" header, query the inviting user with the omnipotent viewer

Summary: Fixes T11982. If an install is not public, the registering user may not be able to see the inviting user.

Test Plan: {F2097656}

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11982

Differential Revision: https://secure.phabricator.com/D17015

+5 -1
+5 -1
src/applications/auth/controller/PhabricatorAuthController.php
··· 259 259 protected function renderInviteHeader(PhabricatorAuthInvite $invite) { 260 260 $viewer = $this->getViewer(); 261 261 262 + // Since the user hasn't registered yet, they may not be able to see other 263 + // user accounts. Load the inviting user with the omnipotent viewer. 264 + $omnipotent_viewer = PhabricatorUser::getOmnipotentUser(); 265 + 262 266 $invite_author = id(new PhabricatorPeopleQuery()) 263 - ->setViewer($viewer) 267 + ->setViewer($omnipotent_viewer) 264 268 ->withPHIDs(array($invite->getAuthorPHID())) 265 269 ->needProfileImage(true) 266 270 ->executeOne();