From 3f547d562d0a0cc63e086d24f96c8a45ad9d932a Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 27 Feb 2013 11:54:17 -0800 Subject: [PATCH] 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 --- .../worker/PhabricatorRepositoryCommitHeraldWorker.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/applications/repository/worker/PhabricatorRepositoryCommitHeraldWorker.php b/src/applications/repository/worker/PhabricatorRepositoryCommitHeraldWorker.php index 694db8e7d7..66cace32fe 100644 --- a/src/applications/repository/worker/PhabricatorRepositoryCommitHeraldWorker.php +++ b/src/applications/repository/worker/PhabricatorRepositoryCommitHeraldWorker.php @@ -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)