@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.

People - add back "add new user" ui

Summary: This got clobbered in D11547. Revive the code but move it up from the base class to the PeopleList controller which is presumably all the main "admin" views. Fixes T7181.

Test Plan: Saw the button once more on /people/...!

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T7181

Differential Revision: https://secure.phabricator.com/D11698

+17
+17
src/applications/people/controller/PhabricatorPeopleListController.php
··· 29 29 return $this->delegateToController($controller); 30 30 } 31 31 32 + protected function buildApplicationCrumbs() { 33 + $crumbs = parent::buildApplicationCrumbs(); 34 + $viewer = $this->getRequest()->getUser(); 35 + 36 + $can_create = $this->hasApplicationCapability( 37 + PeopleCreateUsersCapability::CAPABILITY); 38 + $crumbs->addAction( 39 + id(new PHUIListItemView()) 40 + ->setName(pht('Create New User')) 41 + ->setHref($this->getApplicationURI('create/')) 42 + ->setDisabled(!$can_create) 43 + ->setIcon('fa-plus-square')); 44 + 45 + return $crumbs; 46 + } 47 + 48 + 32 49 }