Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14758839
D19146.id45870.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
788 B
Referenced Files
None
Subscribers
None
D19146.id45870.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D19146: When evaluating the "Branches" Herald field from the test console, use the current viewer
Attached
Detach File
Event Timeline
Log In to Comment