Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15426806
D19146.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.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
Mon, Mar 24, 10:55 AM (4 d, 13 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7227589
Default Alt Text
D19146.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