mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 03:50:54 +01:00
Minor, futher sort out auth exceptions in Conduit + access log.
This commit is contained in:
parent
f362e5785f
commit
c974cb3de8
1 changed files with 5 additions and 3 deletions
|
@ -125,11 +125,13 @@ final class PhabricatorConduitAPIController
|
||||||
$this->actAsUser($api_request, $metadata['actAsUser']);
|
$this->actAsUser($api_request, $metadata['actAsUser']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($auth_error === null) {
|
||||||
$conduit_user = $api_request->getUser();
|
$conduit_user = $api_request->getUser();
|
||||||
if ($conduit_user && $conduit_user->getPHID()) {
|
if ($conduit_user && $conduit_user->getPHID()) {
|
||||||
$conduit_username = $conduit_user->getUsername();
|
$conduit_username = $conduit_user->getUsername();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$access_log = PhabricatorAccessLog::getLog();
|
$access_log = PhabricatorAccessLog::getLog();
|
||||||
if ($access_log) {
|
if ($access_log) {
|
||||||
|
|
Loading…
Reference in a new issue