1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-21 04:50:55 +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
// repository policy stuff. We might need an omniscient user here?
$viewer = new PhabricatorUser();
// repository policy stuff. We might need an omniscient user here? This
// fakes a logged-in user.
$viewer = id(new PhabricatorUser())
->setPHID('PHID-USER-XXX');
$handles = id(new PhabricatorObjectHandleData($phids))
->setViewer($viewer)