mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 12:32:14 +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
|
* @brief admin log
|
||||||
*/
|
*/
|
||||||
$logged_info = Context::get('logged_info');
|
$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 = getController('adminlogging');
|
||||||
$oAdminloggingController->insertLog($this->module, $this->act);
|
$oAdminloggingController->insertLog($this->module, $this->act);
|
||||||
|
|
|
||||||
|
|
@ -14,12 +14,13 @@ if(!defined('__XE__'))
|
||||||
* - When caliing MemberModel::getMemberMenu, feature to add a friend is added
|
* - When caliing MemberModel::getMemberMenu, feature to add a friend is added
|
||||||
*/
|
*/
|
||||||
// Stop if non-logged-in user is
|
// Stop if non-logged-in user is
|
||||||
$logged_info = Context::get('logged_info');
|
if(!Context::get('is_logged') || isCrawler())
|
||||||
if(!$logged_info|| isCrawler())
|
|
||||||
{
|
{
|
||||||
return;
|
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
|
* Message/Friend munus are added on the pop-up window and member profile. Check if a new message is received
|
||||||
* */
|
* */
|
||||||
|
|
|
||||||
|
|
@ -716,7 +716,7 @@ class boardView extends board
|
||||||
$pointForInsert = $point_config["insert_document"];
|
$pointForInsert = $point_config["insert_document"];
|
||||||
if($pointForInsert < 0)
|
if($pointForInsert < 0)
|
||||||
{
|
{
|
||||||
if( !$logged_info )
|
if(!Context::get('is_logged'))
|
||||||
{
|
{
|
||||||
return $this->dispBoardMessage('msg_not_permitted');
|
return $this->dispBoardMessage('msg_not_permitted');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -110,10 +110,10 @@ class communicationModel extends communication
|
||||||
if(!$arrGrant)
|
if(!$arrGrant)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
$logged_info = Context::get('logged_info');
|
if(!Context::get('is_logged'))
|
||||||
if(!$logged_info)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
$logged_info = Context::get('logged_info');
|
||||||
if($logged_info->is_admin == "Y")
|
if($logged_info->is_admin == "Y")
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -627,7 +627,7 @@ class editorModel extends editor
|
||||||
if($logged_info->is_admin == "Y" || $logged_info->is_site_admin == "Y") continue;
|
if($logged_info->is_admin == "Y" || $logged_info->is_site_admin == "Y") continue;
|
||||||
if($val->target_group)
|
if($val->target_group)
|
||||||
{
|
{
|
||||||
if(!$logged_info)
|
if(!Context::get('is_logged'))
|
||||||
{
|
{
|
||||||
$val->enabled = "N";
|
$val->enabled = "N";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue