1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-21 04:50:55 +01:00

Minor, futher sort out auth exceptions in Conduit + access log.

This commit is contained in:
epriestley 2012-04-30 11:18:04 -07:00
parent f362e5785f
commit c974cb3de8

View file

@ -125,9 +125,11 @@ final class PhabricatorConduitAPIController
$this->actAsUser($api_request, $metadata['actAsUser']); $this->actAsUser($api_request, $metadata['actAsUser']);
} }
$conduit_user = $api_request->getUser(); if ($auth_error === null) {
if ($conduit_user && $conduit_user->getPHID()) { $conduit_user = $api_request->getUser();
$conduit_username = $conduit_user->getUsername(); if ($conduit_user && $conduit_user->getPHID()) {
$conduit_username = $conduit_user->getUsername();
}
} }
} }