Page MenuHomePhabricator

D19146.id45870.diff
No OneTemporary

D19146.id45870.diff

diff --git a/src/applications/diffusion/herald/DiffusionCommitBranchesHeraldField.php b/src/applications/diffusion/herald/DiffusionCommitBranchesHeraldField.php
--- a/src/applications/diffusion/herald/DiffusionCommitBranchesHeraldField.php
+++ b/src/applications/diffusion/herald/DiffusionCommitBranchesHeraldField.php
@@ -10,6 +10,8 @@
}
public function getHeraldFieldValue($object) {
+ $viewer = $this->getAdapter()->getViewer();
+
$commit = $object;
$repository = $object->getRepository();
@@ -19,7 +21,7 @@
);
$result = id(new ConduitCall('diffusion.branchquery', $params))
- ->setUser(PhabricatorUser::getOmnipotentUser())
+ ->setUser($viewer)
->execute();
$refs = DiffusionRepositoryRef::loadAllFromDictionaries($result);

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 23, 10:41 AM (8 h, 18 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7036566
Default Alt Text
D19146.id45870.diff (788 B)

Event Timeline