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

Hide "Revision" column in Diffusion history view if Differential is uninstalled

Summary: Fixes T9481. If the viewer does not have access to Differential (for example, because it is not installed), hide the "Revision" column in Diffusion.

Test Plan:
- Viewed history, saw "Revision" column.
- Uninstalled Differential, reloaded, no "Revision" column.

Reviewers: chad

Reviewed By: chad

Subscribers: revi

Maniphest Tasks: T9481

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

+9
+9
src/applications/diffusion/view/DiffusionHistoryTableView.php
··· 88 88 $drequest = $this->getDiffusionRequest(); 89 89 90 90 $viewer = $this->getUser(); 91 + 92 + $show_revisions = PhabricatorApplication::isClassInstalledForViewer( 93 + 'PhabricatorDifferentialApplication', 94 + $viewer); 95 + 91 96 $handles = $viewer->loadHandles($this->getRequiredHandlePHIDs()); 92 97 93 98 $graph = null; ··· 242 247 $view->setColumnVisibility( 243 248 array( 244 249 $graph ? true : false, 250 + true, 251 + true, 252 + true, 253 + $show_revisions, 245 254 )); 246 255 $view->setDeviceVisibility( 247 256 array(