mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
This commit is contained in:
parent
2ffc19cca3
commit
fef8b10ce6
1 changed files with 6 additions and 2 deletions
|
|
@ -745,13 +745,17 @@ class Debug
|
|||
|
||||
case 'admin':
|
||||
default:
|
||||
if ($logged_info = \Context::get('logged_info'))
|
||||
if (!Session::isStarted())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
elseif ($logged_info = Session::getMemberInfo())
|
||||
{
|
||||
return self::$_enabled = $logged_info->isAdmin();
|
||||
}
|
||||
else
|
||||
{
|
||||
return true;
|
||||
return self::$_enabled = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue