Added beta status for applications
Summary: Fixes T2338 Test Plan: bjhb Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin, chad Maniphest Tasks: T2338 Differential Revision: https://secure.phabricator.com/D4529
This commit is contained in:
committed by
epriestley
parent
2888d58034
commit
2a6060a763
@@ -22,8 +22,13 @@ abstract class PhabricatorDirectoryController extends PhabricatorController {
|
||||
$nav->setBaseURI(new PhutilURI('/'));
|
||||
|
||||
$applications = PhabricatorApplication::getAllInstalledApplications();
|
||||
$show_beta =
|
||||
PhabricatorEnv::getEnvConfig('phabricator.show-beta-applications');
|
||||
|
||||
foreach ($applications as $key => $application) {
|
||||
if (!$show_beta && $application->isBeta()) {
|
||||
unset($applications[$key]);
|
||||
}
|
||||
if (!$application->shouldAppearInLaunchView()) {
|
||||
// Remove hidden applications (usually internal stuff).
|
||||
unset($applications[$key]);
|
||||
|
||||
Reference in New Issue
Block a user