Prevent "Manage" profile menu items from being hidden

Summary: Ref T10054. Prevent users from removing this item and locking themselves out of the system unless they can guess the URI.

Test Plan: Tried to disable "Manage", wasn't permitted to.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10054

Differential Revision: https://secure.phabricator.com/D15113
This commit is contained in:
epriestley
2016-01-25 03:21:36 -08:00
parent e7195628d5
commit c11c7f2900
6 changed files with 42 additions and 3 deletions

View File

@@ -13,6 +13,11 @@ final class PhabricatorProjectManageProfilePanel
return pht('Manage');
}
public function canHidePanel(
PhabricatorProfilePanelConfiguration $config) {
return false;
}
public function canMakeDefault(
PhabricatorProfilePanelConfiguration $config) {
return true;