Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/query/PhabricatorPeopleSearchEngine.php
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | $fields = array( | ||||
'Pass true to find only mailing lists, or false to omit '. | 'Pass true to find only mailing lists, or false to omit '. | ||||
'mailing lists.')), | 'mailing lists.')), | ||||
id(new PhabricatorSearchThreeStateField()) | id(new PhabricatorSearchThreeStateField()) | ||||
->setLabel(pht('Needs Approval')) | ->setLabel(pht('Needs Approval')) | ||||
->setKey('needsApproval') | ->setKey('needsApproval') | ||||
->setOptions( | ->setOptions( | ||||
pht('(Show All)'), | pht('(Show All)'), | ||||
pht('Show Only Unapproved Users'), | pht('Show Only Unapproved Users'), | ||||
pht('Hide Unappproved Users')) | pht('Hide Unapproved Users')) | ||||
->setDescription( | ->setDescription( | ||||
pht( | pht( | ||||
'Pass true to find only users awaiting administrative approval, '. | 'Pass true to find only users awaiting administrative approval, '. | ||||
'or false to omit these users.')), | 'or false to omit these users.')), | ||||
); | ); | ||||
$viewer = $this->requireViewer(); | $viewer = $this->requireViewer(); | ||||
if ($viewer->getIsAdmin()) { | if ($viewer->getIsAdmin()) { | ||||
▲ Show 20 Lines • Show All 233 Lines • Show Last 20 Lines |