1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-30 09:20:58 +01:00

Give the fake Herald user a PHID so it counts as logged in and can see commits

See last two commits in this chain.

Auditors: vrana
This commit is contained in:
epriestley 2013-02-27 11:54:17 -08:00
parent 7b76c8ef27
commit 3f547d562d

View file

@ -78,8 +78,10 @@ final class PhabricatorRepositoryCommitHeraldWorker
)); ));
// TODO: This is complicated and needs to be sorted out properly for // TODO: This is complicated and needs to be sorted out properly for
// repository policy stuff. We might need an omniscient user here? // repository policy stuff. We might need an omniscient user here? This
$viewer = new PhabricatorUser(); // fakes a logged-in user.
$viewer = id(new PhabricatorUser())
->setPHID('PHID-USER-XXX');
$handles = id(new PhabricatorObjectHandleData($phids)) $handles = id(new PhabricatorObjectHandleData($phids))
->setViewer($viewer) ->setViewer($viewer)