mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-20 20:40:56 +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:
parent
7b76c8ef27
commit
3f547d562d
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue