Fix fatal error if logged_info is not an object at this stage

This commit is contained in:
Kijin Sung 2023-06-10 21:11:54 +09:00
parent 2b41d73c96
commit 22abeb7a88

View file

@ -65,7 +65,7 @@ class ModuleHandler extends Handler
case 'OK':
break;
case 'ALLOW ADMIN ONLY':
if(!Context::get('logged_info')->isAdmin())
if(!Context::get('logged_info') || !Context::get('logged_info')->isAdmin())
{
$this->error = 'msg_security_violation';
$this->error_detail = $oContext->security_check_detail;