Skip to content

Commit 2be1de4

Browse files
author
Till Brehm
committed
Fix for an issue where plugins dont get loaded when logged in with "Login as".
1 parent bc04205 commit 2be1de4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

interface/web/login/index.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@
217217
$_SESSION['s']['user']['theme'] = isset($user['app_theme']) ? $user['app_theme'] : 'default';
218218
$_SESSION['s']['language'] = $user['language'];
219219
$_SESSION["s"]['theme'] = $_SESSION['s']['user']['theme'];
220+
if ($loginAs) $_SESSION['s']['plugin_cache'] = $_SESSION['s_old']['plugin_cache'];
220221

221222
if(is_file(ISPC_WEB_PATH . '/' . $_SESSION['s']['user']['startmodule'].'/lib/module.conf.php')) {
222223
include_once ISPC_WEB_PATH . '/' . $_SESSION['s']['user']['startmodule'].'/lib/module.conf.php';

0 commit comments

Comments
 (0)