mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-26 23:40:57 +01: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:
parent
73feac47c7
commit
6648942bc8
1 changed files with 6 additions and 0 deletions
|
@ -17,6 +17,12 @@ final class PhabricatorConpherenceProfileMenuItem
|
|||
}
|
||||
|
||||
public function canAddToObject($object) {
|
||||
$application = new PhabricatorConpherenceApplication();
|
||||
|
||||
if (!$application->isInstalled()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue