mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Move login status calculation to its own method and add API in member module
This commit is contained in:
parent
a0f895a02f
commit
0cc1246898
3 changed files with 33 additions and 12 deletions
|
|
@ -32,6 +32,7 @@
|
|||
<action name="dispMemberLogout" type="view" meta-noindex="true" />
|
||||
<action name="dispMemberSpammer" type="view" permission="manager" check_var="module_srl" meta-noindex="true" />
|
||||
|
||||
<action name="getLoginStatus" type="model" meta-noindex="true" />
|
||||
<action name="getMemberMenu" type="model" />
|
||||
<action name="getApiGroups" type="model" permission="root" />
|
||||
|
||||
|
|
|
|||
|
|
@ -174,6 +174,15 @@ class memberModel extends member
|
|||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Display login status as JSON API
|
||||
*/
|
||||
public function getLoginStatus()
|
||||
{
|
||||
Context::setResponseMethod('JSON');
|
||||
$this->add('status', Rhymix\Framework\Session::getLoginStatus());
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Display menus of the member
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue