@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Show "Search" in menubar while logged out if users can access it

Summary:
Ref T603. If an install allows acccess by logged-out users, show search.

(A lot of the search typeahead results, although visible to the user, don't lead anywhere interesting right now. We can clean this up in the future.)

Test Plan: As a logged out user, searched for some stuff. It worked. Also, I only found results I could see, which is quite heartening.

Reviewers: btrahan, chad

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T603

Differential Revision: https://secure.phabricator.com/D7153

+13 -1
+9
src/applications/search/controller/PhabricatorSearchController.php
··· 8 8 9 9 private $key; 10 10 11 + public function shouldAllowPublic() { 12 + return true; 13 + } 14 + 11 15 public function willProcessRequest(array $data) { 12 16 $this->key = idx($data, 'key'); 13 17 } ··· 273 277 $results = null; 274 278 } 275 279 280 + $crumbs = $this->buildApplicationCrumbs(); 281 + $crumbs->addCrumb( 282 + id(new PhabricatorCrumbView()) 283 + ->setName(pht('Search'))); 276 284 277 285 return $this->buildApplicationPage( 278 286 array( 287 + $crumbs, 279 288 $search_panel, 280 289 $results, 281 290 ),
+4 -1
src/view/page/menu/PhabricatorMainMenuView.php
··· 91 91 'helpURI' => '/help/keyboardshortcut/', 92 92 ); 93 93 94 - if ($user->isLoggedIn()) { 94 + $show_search = ($user->isLoggedIn()) || 95 + (PhabricatorEnv::getEnvConfig('policy.allow-public')); 96 + 97 + if ($show_search) { 95 98 $search = new PhabricatorMainMenuSearchView(); 96 99 $search->setUser($user); 97 100 $search->setScope($this->getDefaultSearchScope());