1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-09 16:32:39 +01:00

Unguard conduit.getcertificate() so it can execute logging writes.

This commit is contained in:
epriestley 2011-08-17 12:26:30 -07:00
parent 0e6bc7c939
commit 46b85ab212

View file

@ -25,6 +25,11 @@ class ConduitAPI_conduit_getcertificate_Method extends ConduitAPIMethod {
return false;
}
public function shouldAllowUnguardedWrites() {
// This method performs logging and is on the authentication pathway.
return true;
}
public function getMethodDescription() {
return "Retrieve certificate information for a user.";
}
@ -91,6 +96,7 @@ class ConduitAPI_conduit_getcertificate_Method extends ConduitAPIMethod {
}
private function logFailure() {
$log = id(new PhabricatorUserLog())
->setUserPHID('-')
->setAction(PhabricatorUserLog::ACTION_CONDUIT_CERTIFICATE_FAILURE)