From 3018d44279c52ff507f65a9a0d6f6ac79c1e0eb2 Mon Sep 17 00:00:00 2001 From: epriestley Date: Tue, 8 Feb 2011 10:36:21 -0800 Subject: [PATCH] When a user enables DarkConsole, make it visible. Summary: Test Plan: Reviewers: CC: --- src/aphront/console/controller/DarkConsoleController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/aphront/console/controller/DarkConsoleController.php b/src/aphront/console/controller/DarkConsoleController.php index d728efdc87..fb740f8374 100755 --- a/src/aphront/console/controller/DarkConsoleController.php +++ b/src/aphront/console/controller/DarkConsoleController.php @@ -41,6 +41,9 @@ class DarkConsoleController extends PhabricatorController { if (PhabricatorEnv::getEnvConfig('darkconsole.enabled')) { $user->setConsoleEnabled(!$user->getConsoleEnabled()); + if ($user->getConsoleEnabled()) { + $user->setConsoleVisible(true); + } $user->save(); if ($request->isAjax()) { return new AphrontRedirectResponse();