Delete unnecessary variable #1942

- 이 변수는 권한 컨트롤에 사용하지 않고 있으므로 삭제
- 버그를 해결하는 것은 아님
This commit is contained in:
Kijin Sung 2022-07-03 01:19:09 +09:00
parent 59a1215c87
commit 16b693c7c7

View file

@ -546,21 +546,16 @@ class pointController extends point
{ {
if (!$logged_member_srl && $config->disable_read_document_except_robots == 'Y' && isCrawler()) if (!$logged_member_srl && $config->disable_read_document_except_robots == 'Y' && isCrawler())
{ {
$_SESSION['banned_document'][$obj->document_srl] = false; // pass
} }
else else
{ {
$message = sprintf(lang('msg_disallow_by_point'), abs($reader_point), $cur_point); $message = sprintf(lang('msg_disallow_by_point'), abs($reader_point), $cur_point);
$obj->add('content', $message); $obj->add('content', $message);
$GLOBALS['XE_EXTRA_VARS'][$obj->document_srl] = array(); $GLOBALS['XE_EXTRA_VARS'][$obj->document_srl] = array();
$_SESSION['banned_document'][$obj->document_srl] = true;
return new BaseObject(-1, $message); return new BaseObject(-1, $message);
} }
} }
else
{
$_SESSION['banned_document'][$obj->document_srl] = false;
}
// Record the fact that this member has already read this document. // Record the fact that this member has already read this document.
if ($logged_member_srl) if ($logged_member_srl)