mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-25 23:10:57 +01:00
Unguard conduit.getcertificate() so it can execute logging writes.
This commit is contained in:
parent
0e6bc7c939
commit
46b85ab212
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue