diff --git a/src/applications/search/typeahead/PhabricatorSearchDocumentTypeDatasource.php b/src/applications/search/typeahead/PhabricatorSearchDocumentTypeDatasource.php index 407ab1cad4..860620023c 100644 --- a/src/applications/search/typeahead/PhabricatorSearchDocumentTypeDatasource.php +++ b/src/applications/search/typeahead/PhabricatorSearchDocumentTypeDatasource.php @@ -25,8 +25,10 @@ final class PhabricatorSearchDocumentTypeDatasource } private function buildResults() { + $viewer = $this->getViewer(); $types = - PhabricatorSearchApplicationSearchEngine::getIndexableDocumentTypes(); + PhabricatorSearchApplicationSearchEngine::getIndexableDocumentTypes( + $viewer); $icons = mpull( PhabricatorPHIDType::getAllTypes(),