Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14018287
D11654.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
955 B
Referenced Files
None
Subscribers
None
D11654.diff
View Options
diff --git a/src/applications/repository/worker/PhabricatorRepositoryCommitOwnersWorker.php b/src/applications/repository/worker/PhabricatorRepositoryCommitOwnersWorker.php
--- a/src/applications/repository/worker/PhabricatorRepositoryCommitOwnersWorker.php
+++ b/src/applications/repository/worker/PhabricatorRepositoryCommitOwnersWorker.php
@@ -106,9 +106,10 @@
$commit_reviewedby_phid = null;
if ($revision_id) {
- // TODO: (T603) This is probably safe to use an omnipotent user on,
- // but check things more closely.
- $revision = id(new DifferentialRevision())->load($revision_id);
+ $revision = id(new DifferentialRevisionQuery())
+ ->setViewer(PhabricatorUser::getOmnipotentUser())
+ ->withIDs(array($revision_id))
+ ->executeOne();
if ($revision) {
$revision_author_phid = $revision->getAuthorPHID();
$commit_reviewedby_phid = $data->getCommitDetail('reviewerPHID');
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 6, 7:44 AM (2 w, 5 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6716496
Default Alt Text
D11654.diff (955 B)
Attached To
Mode
D11654: Policy - convert repository worker to query revision with policy query
Attached
Detach File
Event Timeline
Log In to Comment