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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user