작업은 modules/poll 모듈에서..
poll.model.php 파일 편집
회원만 설문조사에 응할 수 있도록 합니다.
※ 이 부분은 오류 수정이 아니므로 꼭 필요시에만 수정 바랍니다.
아래 함수 내용 중 굵은 부분을 주석처리하고 그 밑에 return true; 를 삽입합니다.
function isPolled($poll_srl) {
$args->poll_srl = $poll_srl;
if(Context::get('is_logged')) {
$logged_info = Context::get('logged_info');
$args->member_srl = $logged_info->member_srl;
} else {
//$args->ipaddress = $_SERVER['REMOTE_ADDR'];
return true;
}
$output = executeQuery('poll.getPollLog', $args);
if($output->data->count) return true;
return false;
}
queries/getPollLog.xml 파일 편집
그 아래 줄을 삭제합니다.
(이 부분은 회원만 설문조사에 응할 수 있도록 하는 두번째 작업 입니다)
<condition operation="equal" column="ipaddress" var="ipaddress" default="ipaddress()" pipe="and" />
원본글 : https://xe1.xpressengine.com/tip/14591532