Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2946696
D25116.1738410079.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1007 B
Referenced Files
None
Subscribers
None
D25116.1738410079.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D25116: People: add a permalink to list Administrators
Attached
Detach File
Event Timeline
Log In to Comment