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