@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.

Don't show "View Wiki" reminder link if viewer has no access to Phriction

Summary: Fixes T6581.

Test Plan:
- Loaded project page with Phriction accessible, saw link.
- Loaded project page with Phriction uninstalled, no link.

Reviewers: btrahan, chad

Reviewed By: chad

Subscribers: epriestley

Maniphest Tasks: T6581

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

+11 -6
+11 -6
src/applications/project/controller/PhabricatorProjectProfileController.php
··· 261 261 } 262 262 } 263 263 264 - $view->addAction( 265 - id(new PhabricatorActionView()) 266 - ->setIcon('fa-book grey') 267 - ->setName(pht('View Wiki')) 268 - ->setWorkflow(true) 269 - ->setHref('/project/wiki/')); 264 + $have_phriction = PhabricatorApplication::isClassInstalledForViewer( 265 + 'PhabricatorPhrictionApplication', 266 + $viewer); 267 + if ($have_phriction) { 268 + $view->addAction( 269 + id(new PhabricatorActionView()) 270 + ->setIcon('fa-book grey') 271 + ->setName(pht('View Wiki')) 272 + ->setWorkflow(true) 273 + ->setHref('/project/wiki/')); 274 + } 270 275 271 276 return $view; 272 277 }