mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 21:02:41 +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:
parent
9c19a026a8
commit
49a44a0b1f
2 changed files with 5 additions and 3 deletions
|
@ -3,6 +3,10 @@
|
|||
final class PhabricatorProjectProfilePanelEngine
|
||||
extends PhabricatorProfilePanelEngine {
|
||||
|
||||
protected function isPanelEngineConfigurable() {
|
||||
return true;
|
||||
}
|
||||
|
||||
protected function getPanelURI($path) {
|
||||
$project = $this->getProfileObject();
|
||||
$id = $project->getID();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue