@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
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at recaptime-dev/main 42 lines 1.1 kB view raw
1<?php 2 3final class PhabricatorPeopleListController 4 extends PhabricatorPeopleController { 5 6 public function shouldAllowPublic() { 7 return true; 8 } 9 10 public function shouldRequireAdmin() { 11 return false; 12 } 13 14 public function handleRequest(AphrontRequest $request) { 15 $this->requireApplicationCapability( 16 PeopleBrowseUserDirectoryCapability::CAPABILITY); 17 18 $controller = id(new PhabricatorApplicationSearchController()) 19 ->setQueryKey($request->getURIData('queryKey')) 20 ->setSearchEngine(new PhabricatorPeopleSearchEngine()) 21 ->setNavigation($this->buildSideNavView()); 22 23 return $this->delegateToController($controller); 24 } 25 26 protected function buildApplicationCrumbs() { 27 $crumbs = parent::buildApplicationCrumbs(); 28 $viewer = $this->getRequest()->getUser(); 29 30 if ($viewer->getIsAdmin()) { 31 $crumbs->addAction( 32 id(new PHUIListItemView()) 33 ->setName(pht('Create New User')) 34 ->setHref($this->getApplicationURI('create/')) 35 ->setIcon('fa-plus-square')); 36 } 37 38 return $crumbs; 39 } 40 41 42}