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:
parent
9c48de28f1
commit
3018d44279
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue