1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-02 19:01:03 +01:00

When a user enables DarkConsole, make it visible.

Summary:

Test Plan:

Reviewers:

CC:
This commit is contained in:
epriestley 2011-02-08 10:36:21 -08:00
parent 9c48de28f1
commit 3018d44279

View file

@ -41,6 +41,9 @@ class DarkConsoleController extends PhabricatorController {
if (PhabricatorEnv::getEnvConfig('darkconsole.enabled')) { if (PhabricatorEnv::getEnvConfig('darkconsole.enabled')) {
$user->setConsoleEnabled(!$user->getConsoleEnabled()); $user->setConsoleEnabled(!$user->getConsoleEnabled());
if ($user->getConsoleEnabled()) {
$user->setConsoleVisible(true);
}
$user->save(); $user->save();
if ($request->isAjax()) { if ($request->isAjax()) {
return new AphrontRedirectResponse(); return new AphrontRedirectResponse();