1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 09:18:48 +02: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
extends PhabricatorProfilePanelEngine {
protected function isPanelEngineConfigurable() {
return true;
}
protected function getPanelURI($path) {
$project = $this->getProfileObject();
$id = $project->getID();

View file

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