Differential D15943 Diff 38385 src/applications/auth/conduit/PhabricatorAuthQueryPublicKeysConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/conduit/PhabricatorAuthQueryPublicKeysConduitAPIMethod.php
Show All 22 Lines | final class PhabricatorAuthQueryPublicKeysConduitAPIMethod | ||||
protected function defineReturnType() { | protected function defineReturnType() { | ||||
return 'result-set'; | return 'result-set'; | ||||
} | } | ||||
protected function execute(ConduitAPIRequest $request) { | protected function execute(ConduitAPIRequest $request) { | ||||
$viewer = $request->getUser(); | $viewer = $request->getUser(); | ||||
$query = id(new PhabricatorAuthSSHKeyQuery()) | $query = id(new PhabricatorAuthSSHKeyQuery()) | ||||
->setViewer($viewer); | ->setViewer($viewer) | ||||
->withIsActive(true); | |||||
$ids = $request->getValue('ids'); | $ids = $request->getValue('ids'); | ||||
if ($ids !== null) { | if ($ids !== null) { | ||||
$query->withIDs($ids); | $query->withIDs($ids); | ||||
} | } | ||||
$phids = $request->getValue('phids'); | $phids = $request->getValue('phids'); | ||||
if ($phids !== null) { | if ($phids !== null) { | ||||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |