mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
Always get $this->user directly from Rhymix\Framework\Session
서드파티 자료가 Context->get('logged_info')에 stdClass를 넣는 경우
$this->user->isAdmin() 등의 메소드를 사용할 수 없게 되는 문제 수정
This commit is contained in:
parent
d417cee611
commit
9a87376e35
2 changed files with 2 additions and 2 deletions
|
|
@ -37,7 +37,7 @@ class ModuleObject extends BaseObject
|
|||
*/
|
||||
function __construct($error = 0, $message = 'success')
|
||||
{
|
||||
$this->user = Context::get('logged_info') ?: new Rhymix\Framework\Helpers\SessionHelper;
|
||||
$this->user = Rhymix\Framework\Session::getMemberInfo() ?: new Rhymix\Framework\Helpers\SessionHelper;
|
||||
parent::__construct($error, $message);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ class TemplateHandler
|
|||
{
|
||||
$this->config = new stdClass;
|
||||
$this->handler_mtime = filemtime(__FILE__);
|
||||
$this->user = Context::get('logged_info') ?: new Rhymix\Framework\Helpers\SessionHelper;
|
||||
$this->user = Rhymix\Framework\Session::getMemberInfo() ?: new Rhymix\Framework\Helpers\SessionHelper;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue