Page MenuHomePhabricator

D7356.id16566.diff
No OneTemporary

D7356.id16566.diff

Index: src/applications/conduit/call/ConduitCall.php
===================================================================
--- src/applications/conduit/call/ConduitCall.php
+++ src/applications/conduit/call/ConduitCall.php
@@ -87,7 +87,8 @@
$this->request->setUser($user);
if ($this->shouldRequireAuthentication()) {
- if (!$user->isLoggedIn()) {
+ // TODO: As per below, this should get centralized and cleaned up.
+ if (!$user->isLoggedIn() && !$user->isOmnipotent()) {
throw new ConduitException("ERR-INVALID-AUTH");
}
Index: src/applications/repository/worker/commitmessageparser/PhabricatorRepositoryCommitMessageParserWorker.php
===================================================================
--- src/applications/repository/worker/commitmessageparser/PhabricatorRepositoryCommitMessageParserWorker.php
+++ src/applications/repository/worker/commitmessageparser/PhabricatorRepositoryCommitMessageParserWorker.php
@@ -54,7 +54,7 @@
'corpus' => $message,
'partial' => true,
));
- $call->setUser($user);
+ $call->setUser(PhabricatorUser::getOmnipotentUser());
$result = $call->execute();
$field_values = $result['fields'];

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 12, 12:24 AM (2 d, 4 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6730482
Default Alt Text
D7356.id16566.diff (1 KB)

Event Timeline