@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
at upstream/main 25 lines 576 B view raw
1<?php 2 3final class PhabricatorAuthSSHKeyListController 4 extends PhabricatorAuthSSHKeyController { 5 6 public function shouldAllowPublic() { 7 return true; 8 } 9 10 public function handleRequest(AphrontRequest $request) { 11 $object_phid = $request->getURIData('forPHID'); 12 $object = $this->loadSSHKeyObject($object_phid, false); 13 if (!$object) { 14 return new Aphront404Response(); 15 } 16 17 $engine = id(new PhabricatorAuthSSHKeySearchEngine()) 18 ->setSSHKeyObject($object); 19 20 return id($engine) 21 ->setController($this) 22 ->buildResponse(); 23 } 24 25}