Page MenuHomePhorge

D25116.1738410079.diff
No OneTemporary

D25116.1738410079.diff

diff --git a/src/applications/people/query/PhabricatorPeopleSearchEngine.php b/src/applications/people/query/PhabricatorPeopleSearchEngine.php
--- a/src/applications/people/query/PhabricatorPeopleSearchEngine.php
+++ b/src/applications/people/query/PhabricatorPeopleSearchEngine.php
@@ -203,6 +203,12 @@
'all' => pht('All'),
);
+ // Showing all the Administrators is a very frequent need
+ // from lot of components (example: Config etc.)
+ // that deserves this clean reliable URL:
+ // /people/query/admin/
+ $names['admin'] = pht('Administrators');
+
$viewer = $this->requireViewer();
if ($viewer->getIsAdmin()) {
$names['approval'] = pht('Approval Queue');
@@ -221,6 +227,9 @@
case 'active':
return $query
->setParameter('isDisabled', false);
+ case 'admin':
+ return $query
+ ->setParameter('isAdmin', true);
case 'approval':
return $query
->setParameter('needsApproval', true)

File Metadata

Mime Type
text/plain
Expires
Sat, Feb 1, 11:41 (5 d, 5 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1155228
Default Alt Text
D25116.1738410079.diff (1007 B)

Event Timeline