관리자에게만 디버그 정보 표시 설정시 아예 표시되지 않는 문제 수정

isEnabledForCurrentUser() 에서 Context::get('logged_info') 사용되기에 self::set('logged_info', ..) 이후에서 실행되어야함
This commit is contained in:
conory 2021-04-09 01:38:33 +09:00
parent f0085f816e
commit 80e0498425

View file

@ -367,9 +367,6 @@ class Context
Rhymix\Framework\Session::checkSSO($site_module_info);
Rhymix\Framework\Session::start(false, $relax_key_checks);
}
// start debugging
Rhymix\Framework\Debug::isEnabledForCurrentUser();
// start output buffer
if (\PHP_SAPI !== 'cli')
@ -391,6 +388,9 @@ class Context
}
}
// start debugging
Rhymix\Framework\Debug::isEnabledForCurrentUser();
// set locations for javascript use
$current_url = $request_uri = self::getRequestUri();
if (isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] === 'GET' && self::$_get_vars)