로그인하지 않은 유저만 세션에서 리턴 하도록 고침

This commit is contained in:
BJRambo 2019-08-09 17:49:28 +09:00
parent 992ca78bb1
commit ef1e18caf8

View file

@ -193,7 +193,7 @@ class documentController extends document
*/
function updateVotedCountCancel($document_srl, $oDocument, $point)
{
if(!$_SESSION['voted_document'][$document_srl])
if(!$_SESSION['voted_document'][$document_srl] && !$this->user->member_srl)
{
return new BaseObject(-1, $point > 0 ? 'failed_voted_canceled' : 'failed_blamed_canceled');
}