1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +01:00

Make project menus unconditionally configurable

Summary: Fixes T10213. I think the "Edit" item was originally conditional (or maybe I just forgot to add that part), but that got dropped when we swapped how it worked. This is all stable now anyway and can be available without needing prototypes enabled.

Test Plan: Edited a project menu.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10213

Differential Revision: https://secure.phabricator.com/D15117
This commit is contained in:
epriestley 2016-01-26 07:27:41 -08:00
parent 9c19a026a8
commit 49a44a0b1f
2 changed files with 5 additions and 3 deletions

View file

@ -3,6 +3,10 @@
final class PhabricatorProjectProfilePanelEngine final class PhabricatorProjectProfilePanelEngine
extends PhabricatorProfilePanelEngine { extends PhabricatorProfilePanelEngine {
protected function isPanelEngineConfigurable() {
return true;
}
protected function getPanelURI($path) { protected function getPanelURI($path) {
$project = $this->getProfileObject(); $project = $this->getProfileObject();
$id = $project->getID(); $id = $project->getID();

View file

@ -49,9 +49,7 @@ abstract class PhabricatorProfilePanelEngine extends Phobject {
abstract protected function getPanelURI($path); abstract protected function getPanelURI($path);
protected function isPanelEngineConfigurable() { abstract protected function isPanelEngineConfigurable();
return PhabricatorEnv::getEnvConfig('phabricator.show-prototypes');
}
public function buildResponse() { public function buildResponse() {
$controller = $this->getController(); $controller = $this->getController();