자추 활성화

This commit is contained in:
Lastorder 2024-06-19 19:49:35 +09:00 committed by GitHub
parent 165e976fa3
commit 23ab7cccce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -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.

View file

@ -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.