mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Fix #1884 incorrect caching of debugging enabled flag
This commit is contained in:
parent
05ac2ec558
commit
53a8eaa81c
1 changed files with 3 additions and 2 deletions
|
|
@ -745,11 +745,12 @@ class Debug
|
|||
|
||||
case 'admin':
|
||||
default:
|
||||
if (!Session::isStarted())
|
||||
$logged_info = \Context::get('logged_info');
|
||||
if (!isset($logged_info))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
elseif ($logged_info = \Context::get('logged_info'))
|
||||
elseif (method_exists($logged_info, 'isAdmin'))
|
||||
{
|
||||
return self::$_enabled = $logged_info->isAdmin();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue