1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 01:08:50 +02:00

Don't allow "Conpherence" menu items to be added to editable menus if Conpherence is not installed

Summary: Depends on D20336. Ref T13272. Fixes T12745. If you uninstall Conpherence, "Edit Favorites" and other editable menu interfaces still allow you to add "Conpherence" items. Prevent this.

Test Plan:
  - Installed Conpherence: Saw option to add a "Conpherence" link when editing favorites menu.
  - Uninstalled Conpherence: No more option.

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13272, T12745

Differential Revision: https://secure.phabricator.com/D20337
This commit is contained in:
epriestley 2019-03-27 11:25:27 -07:00
parent 73feac47c7
commit 6648942bc8

View file

@ -17,6 +17,12 @@ final class PhabricatorConpherenceProfileMenuItem
}
public function canAddToObject($object) {
$application = new PhabricatorConpherenceApplication();
if (!$application->isInstalled()) {
return false;
}
return true;
}