mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
로그인 여부 체크
This commit is contained in:
parent
6fadb881be
commit
4051c5dbc1
5 changed files with 10 additions and 9 deletions
|
|
@ -10,7 +10,7 @@ if(!defined('__XE__'))
|
|||
* @brief admin log
|
||||
*/
|
||||
$logged_info = Context::get('logged_info');
|
||||
if($logged_info && $logged_info->is_admin == 'Y' && stripos(Context::get('act'), 'admin') !== false && $called_position == 'before_module_proc')
|
||||
if(Context::get('is_logged') && $logged_info->is_admin == 'Y' && stripos(Context::get('act'), 'admin') !== false && $called_position == 'before_module_proc')
|
||||
{
|
||||
$oAdminloggingController = getController('adminlogging');
|
||||
$oAdminloggingController->insertLog($this->module, $this->act);
|
||||
|
|
|
|||
|
|
@ -14,12 +14,13 @@ if(!defined('__XE__'))
|
|||
* - When caliing MemberModel::getMemberMenu, feature to add a friend is added
|
||||
*/
|
||||
// Stop if non-logged-in user is
|
||||
$logged_info = Context::get('logged_info');
|
||||
if(!$logged_info|| isCrawler())
|
||||
if(!Context::get('is_logged') || isCrawler())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
$logged_info = Context::get('logged_info');
|
||||
|
||||
/**
|
||||
* Message/Friend munus are added on the pop-up window and member profile. Check if a new message is received
|
||||
* */
|
||||
|
|
|
|||
|
|
@ -716,11 +716,11 @@ class boardView extends board
|
|||
$pointForInsert = $point_config["insert_document"];
|
||||
if($pointForInsert < 0)
|
||||
{
|
||||
if( !$logged_info )
|
||||
if(!Context::get('is_logged'))
|
||||
{
|
||||
return $this->dispBoardMessage('msg_not_permitted');
|
||||
}
|
||||
else if (($oPointModel->getPoint($logged_info->member_srl) + $pointForInsert )< 0 )
|
||||
else if(($oPointModel->getPoint($logged_info->member_srl) + $pointForInsert) < 0)
|
||||
{
|
||||
return $this->dispBoardMessage('msg_not_enough_point');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -110,10 +110,10 @@ class communicationModel extends communication
|
|||
if(!$arrGrant)
|
||||
return false;
|
||||
|
||||
$logged_info = Context::get('logged_info');
|
||||
if(!$logged_info)
|
||||
if(!Context::get('is_logged'))
|
||||
return false;
|
||||
|
||||
|
||||
$logged_info = Context::get('logged_info');
|
||||
if($logged_info->is_admin == "Y")
|
||||
return true;
|
||||
|
||||
|
|
|
|||
|
|
@ -627,7 +627,7 @@ class editorModel extends editor
|
|||
if($logged_info->is_admin == "Y" || $logged_info->is_site_admin == "Y") continue;
|
||||
if($val->target_group)
|
||||
{
|
||||
if(!$logged_info)
|
||||
if(!Context::get('is_logged'))
|
||||
{
|
||||
$val->enabled = "N";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue