mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
자추 활성화
This commit is contained in:
parent
165e976fa3
commit
23ab7cccce
2 changed files with 4 additions and 2 deletions
|
|
@ -1612,12 +1612,13 @@ class CommentController extends Comment
|
|||
// if the comment author is a member
|
||||
if($oComment->get('member_srl'))
|
||||
{
|
||||
// session registered if the author information matches to the current logged-in user's.
|
||||
/* session registered if the author information matches to the current logged-in user's.
|
||||
if($member_srl && $member_srl == abs($oComment->get('member_srl')))
|
||||
{
|
||||
$_SESSION['voted_comment'][$comment_srl] = false;
|
||||
return new BaseObject(-1, $failed_voted . '_self');
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
// If logged-in, use the member_srl. otherwise use the ipaddress.
|
||||
|
|
|
|||
|
|
@ -1877,12 +1877,13 @@ class DocumentController extends Document
|
|||
// Check if document's author is a member.
|
||||
if($oDocument->get('member_srl'))
|
||||
{
|
||||
// Pass after registering a session if author's information is same as the currently logged-in user's.
|
||||
/* Pass after registering a session if author's information is same as the currently logged-in user's.
|
||||
if($member_srl && $member_srl == abs($oDocument->get('member_srl')))
|
||||
{
|
||||
$_SESSION['voted_document'][$document_srl] = false;
|
||||
return new BaseObject(-1, $failed_voted . '_self');
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
// Use member_srl for logged-in members and IP address for non-members.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue