diff --git a/src/applications/conduit/call/ConduitCall.php b/src/applications/conduit/call/ConduitCall.php index f4cac28956..b9e5a1491a 100644 --- a/src/applications/conduit/call/ConduitCall.php +++ b/src/applications/conduit/call/ConduitCall.php @@ -87,7 +87,8 @@ final class ConduitCall { $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"); } diff --git a/src/applications/repository/worker/commitmessageparser/PhabricatorRepositoryCommitMessageParserWorker.php b/src/applications/repository/worker/commitmessageparser/PhabricatorRepositoryCommitMessageParserWorker.php index d7f66b0457..71f88f1a1e 100644 --- a/src/applications/repository/worker/commitmessageparser/PhabricatorRepositoryCommitMessageParserWorker.php +++ b/src/applications/repository/worker/commitmessageparser/PhabricatorRepositoryCommitMessageParserWorker.php @@ -54,7 +54,7 @@ abstract class PhabricatorRepositoryCommitMessageParserWorker 'corpus' => $message, 'partial' => true, )); - $call->setUser($user); + $call->setUser(PhabricatorUser::getOmnipotentUser()); $result = $call->execute(); $field_values = $result['fields'];