mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 07:12:15 +09:00
로그인 여부 체크
This commit is contained in:
parent
6fadb881be
commit
4051c5dbc1
5 changed files with 10 additions and 9 deletions
|
|
@ -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