비밀글 수정시 권한 문제

1. 정확한 제품 또는 플러그인 이름

Kboard 기본 스킨을 사용중입니다.
 

 

2. 상세 내용

Kboard 기본 스킨으로 글쓰기(editer.php) 페이지를 커스텀하여 사용중입니다.
글쓰기 설정은 누구나 작성가능(비밀번호 입력) 게시판입니다.
글 읽기 설정은 "비밀번호" 입력 후 읽기 가능합니다.

비회원이 글 작성 후 비밀번호를 입력하고 "도큐멘트" 페이지 까지는 잘 들어갑니다.
문제는 도큐멘트 페이지에서 "수정" 버튼 클릭시 "권한이 없습니다." 엘럿창이 나오면서
워드프레스 로그인 페이지로 이동한다는 겁니다.

비밀번호 입력 후 "도큐멘트" 페이지는 잘 들어 갔는데 ..
왜 "수정" 버튼 클릭시 권한 문제가 생기는지 알 수가 없어서 문의 드립니다.

참고로, "수정" 버튼 클릭시 "편집 모드"로 들어가는 글도 있습니다.
편집모드로 들어가는 글의 작성일을 보니 당일에 작성된 글은 "편집"모드로 들어가지는듯 합니다.
날짜가 지난 글은 권한문제가 발생하는듯 합니다.

 

3. 확인 가능한 상세 페이지 주소

https://emass1406.mycafe24.com/?page_id=3392

 

4. 수정한 코드 내역 (있다면)

<div id="kboard-default-editor" class="kboard-uhr_inquiry-editor">
	<form class="kboard-form" method="post" action="<?php echo esc_url($url->getContentEditorExecute())?>" enctype="multipart/form-data" onsubmit="return kboard_editor_execute(this);">
		<?php $skin->editorHeader($content, $board)?>

		<input type="hidden" name="wordpress_search" value="3">
		<input type="hidden" name="title" value="">

		<input type="hidden" class="required" name="kboard_option_inquiry_num" value="">
		<input type="hidden" class="required" name="kboard_option_analysis_selection1" value="">
		<input type="hidden" class="required" name="kboard_option_analysis_selection2" value="">
		
		<input type="hidden" class="required" name="kboard_option_privacy" value="동의안함">
		

		<!-- 타이틀 사용장에게 숨기고 js로 자동 추가함 -->
		<div class="kboard-attr-row kboard-attr-title" style="display: none;">
			<label class="attr-name" for="kboard-input-title"><?php echo __('Title', 'kboard')?></label>
			<div class="attr-value"><input type="text" id="kboard-input-title" name="title" value="<?php echo $content->title?>" placeholder="<?php echo __('Title', 'kboard')?>..."></div>
		</div>

		<!-- 게시판 작업 시작 -->
		<div class="inquiry_info_wrap">
			<h4>분석의뢰서</h4>

			<div class="inquiry_apply_wrap row">
				<!-- 구분 -->
				<div class="kboard-attr-row">
					<label class="attr-name" for="kboard-select-category1"><?php echo __('구분', 'kboard')?></label>
					<div class="attr-value">
						<select id="kboard-select-category1" name="category1" required>
							<option value="">구분선택</option>
							<?php while($board->hasNextCategory()):?>
							<option value="<?php echo $board->currentCategory()?>"<?php if($content->category1 == $board->currentCategory()):?> selected<?php endif?>><?php echo $board->currentCategory()?></option>
							<?php endwhile?>
						</select>
					</div>
				</div>

				

				<!-- 접수번호 -text- -->
				<div class="kboard-attr-row">
					<?php
						$Object = new DateTime();  
						$Object->setTimezone(new DateTimeZone('Asia/Seoul'));
						$DateAndTime = $Object->format("Y-m-d-Hi");
						$count_num = $Object->format("Hi"); 
						$inquiry_num = $DateAndTime; 
					?>
					<label class="attr-name required" for="kboard_option_inquiry_num">접수번호</label>
					<div class="attr-value"><input type="text" id="kboard_option_inquiry_num" name="kboard_option_inquiry_num" value="<?php echo $content->option->inquiry_num = "{$inquiry_num}" ?>" required readonly></div>
				</div>
			</div>

			<div class="inquiry_category_wrap row">
				<!-- 분석선택1 -->
				<div class="kboard-attr-row">
					<label class="attr-name" for="kboard_option_analysis_selection1">분석선택</label>
					<div class="attr-value">
						<select id="kboard_option_analysis_selection1" name="kboard_option_analysis_selection1">
							<option value="">분석선택1</option>
							<option value="NMR"<?php if($content->option->analysis_selection1 == 'NMR'):?> selected<?php endif?>>NMR</option>
							<option value="LC-MS/MS"<?php if($content->option->analysis_selection1 == 'LC-MS/MS'):?> selected<?php endif?>>LC-MS/MS</option>
						</select>
					</div>
				</div>

				<!-- 분석선택2 -->
				<div class="kboard-attr-row">
					<label class="attr-name required" for="kboard_option_analysis_selection2">분석선택2</label>
					<div class="attr-value">
						<input type="text" class="required" id="kboard_option_analysis_selection2" name="kboard_option_analysis_selection2" placeholder="분석선택2" value="<?php echo $content->option->analysis_selection2 ?>">
					</div>
				</div>
			</div>

			<div class="inquiry_item_wrap row">
				<!-- 시료개수 -text- -->
				<div class="kboard-attr-row">
					<label class="attr-name required" for="kboard_option_sample_num">시료개수</label>
					<div class="attr-value"><input type="text" class="required" id="kboard_option_sample_num" name="kboard_option_sample_num" value="<?php echo $content->option->sample_num ?>" required></div>
				</div>

				<!-- 시료유형 -selec- -->
				<div class="kboard-attr-row">
					<label class="attr-name required" for="kboard_option_sample_type">시료유형</label>
					<div class="attr-value">
						<select id="kboard_option_sample_type" name="kboard_option_sample_type" required>
							<option value="분말(동결)"<?php if($content->option->sample_type == '분말(동결)'):?> selected<?php endif?>>분말(동결)</option>
						</select>
					</div>
				</div>
			</div>

			<div class="etc_inquiry_service_wrap row">
				<!-- 분석시료 추가 정보 -textarea- -->
				<div class="kboard-attr-row">
					<label class="attr-name" for="kboard_option_etc_inquiry_service">분석시료 추가 정보</label>
					<div class="attr-value">
						<textarea id="kboard_option_etc_inquiry_service" name="kboard_option_etc_inquiry_service" placeholder="양식에 없는 내용을 여기에 적어주세요!"><?php echo $content->option->etc_inquiry_service?></textarea>
					</div>
				</div>
			</div>
		</div><!-- //.inquiry_info_wrap --> 


		<div class="inquiry_person_info_wrap">
			<h4>분석료결제정보 <small>* 기타기재사항을 제외한 모든 항목을 필수 기재사항입니다.</small></h4>

			<div class="inquiry_person_info">
				<div class="row">
					<!-- 의뢰자성명 -->
					<div class="kboard-attr-row">
						<label class="attr-name required" for="kboard_option_your_name">의뢰자성명</label>
						<div class="attr-value"><input type="text" class="required" id="kboard_option_your_name" name="kboard_option_your_name" value="<?php echo $content->option->your_name ?>" required></div>
					</div>
					<!-- 의뢰자이메일 -->
					<div class="kboard-attr-row">
						<label class="attr-name required" for="kboard_option_your_email">의뢰자이메일</label>
						<div class="attr-value"><input type="text" class="required" id="kboard_option_your_email" name="kboard_option_your_email" value="<?php echo $content->option->your_email ?>" required></div>
					</div>
				</div>
				
				<div class="row">
					<!-- 핸드폰번호 -->
					<div class="kboard-attr-row">
						<label class="attr-name required" for="kboard_option_your_cell_number">핸드폰번호</label>
						<div class="attr-value"><input type="text" class="required" id="kboard_option_your_cell_number" name="kboard_option_your_cell_number" value="<?php echo $content->option->your_cell_number ?>" required></div>
					</div>
				</div>
				
			</div>

			<div class="inquiry_pay_person_info">
				<p><label><input type="checkbox" name="same_inquiry_person_info" id="same_inquiry_person_info"> 의뢰자와 같음</label></p>
				<div class="row">
					<!-- 결제담당자성명 -->
					<div class="kboard-attr-row">
						<label class="attr-name required" for="kboard_option_your_pay_person_name">결제담당자성명</label>
						<div class="attr-value"><input type="text" class="required" id="kboard_option_your_pay_person_name" name="kboard_option_your_pay_person_name" value="<?php echo $content->option->your_pay_person_name ?>" required></div>
					</div>
					<!-- 결제담당자이메일 -->
					<div class="kboard-attr-row">
						<label class="attr-name required" for="kboard_option_your_pay_person_email">결제담당자이메일</label>
						<div class="attr-value"><input type="text" class="required" id="kboard_option_your_pay_person_email" name="kboard_option_your_pay_person_email" value="<?php echo $content->option->your_pay_person_email ?>" required></div>
					</div>
				</div>

				<div class="row">
					<!-- 결제담당자전화 -->
					<div class="kboard-attr-row">
						<label class="attr-name required" for="kboard_option_your_pay_person_tel">결제담당자전화</label>
						<div class="attr-value"><input type="text" class="required" class="required" id="kboard_option_your_pay_person_tel" name="kboard_option_your_pay_person_tel" value="<?php echo $content->option->your_pay_person_tel ?>" required></div>
					</div>
				</div>

				<script type="text/javascript">
					//의뢰자와 같음
					jQuery("#same_inquiry_person_info").on("click", function() {
						// alert("클릭");
						var opt_your_name = jQuery("#kboard_option_your_name").val();
						var opt_your_email = jQuery("#kboard_option_your_email").val();
						var opt_your_cell = jQuery("#kboard_option_your_cell_number").val();

						// 체크박스가 disabled 인가?
						if( jQuery(this).is(":checked") ){
							// alert("checked:true");
							if( jQuery("#kboard_option_your_name").val() || jQuery("#kboard_option_your_email").val() || 	jQuery("#kboard_option_your_cell_number").val() ){
								jQuery("#kboard_option_your_pay_person_name").val(opt_your_name);
								jQuery("#kboard_option_your_pay_person_email").val(opt_your_email);
								jQuery("#kboard_option_your_pay_person_tel").val(opt_your_cell);
								
							}else{
								alert('의뢰자 정보가 부족합니다.');
								jQuery(this).prop('checked', false); 
							}
						} else {
							// alert("checked:false");
							jQuery("#kboard_option_your_pay_person_name").val('');
							jQuery("#kboard_option_your_pay_person_email").val('');
							jQuery("#kboard_option_your_pay_person_tel").val('');
						}
						
					});

					jQuery(document).ready(function() {
						
					});
				</script>
			</div>

			<div class="inquiry_etc_add_details">
				<div class="row">
				<!-- 기타추가기재사항 -->
					<div class="kboard-attr-row">
						<label class="attr-name" for="kboard_option_your_etc_add_details">기타추가기재사항</label>
						<div class="attr-value"><input type="text" id="kboard_option_your_etc_add_details" name="kboard_option_your_etc_add_details" value="<?php echo $content->option->your_etc_add_details ?>"></div>
					</div>
				</div>
			</div>

			<div class="passowrd">
				<div class="row">
					<!-- 패스워드 -->
					<?php if($board->viewUsernameField()):?>
						<div class="kboard-attr-row secret-password-row">
							<label class="attr-name required" for="kboard-input-password"><?php echo __('Password', 'kboard')?></label>
							<div class="attr-value"><input type="password" id="kboard-input-password" name="password" value="<?php echo $content->password?>" placeholder="<?php echo __('Password', 'kboard')?>..." required></div>
						</div>
					<?php endif?>
				</div>
			</div>

			<div class="privacy_wrap">
				<div class="row">
					<!-- 개인정보취급방침 -->
					<div class="kboard-attr-row meta-key-privacy required">
						<div class="attr-value" style="margin:0;">
							<div class="privacy_chk" style="text-align:center;">
								<label><input type="checkbox" class="required" name="kboard_option_privacy" value="동의함" required <?php if($content->option->privacy == '동의함'):?> checked<?php endif?>> 개인정보취급방침에 동의합니다.</label>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div><!-- //.inquiry_person_info_wrap -->

		
		<div class="kboard-control">
			<div class="left">
				<?php if($content->uid):?>
				<a href="<?php echo esc_url($url->getDocumentURLWithUID($content->uid))?>" class="kboard-default-button-small"><?php echo __('Back', 'kboard')?></a>
				<a href="<?php echo esc_url($url->getBoardList())?>" class="kboard-default-button-small"><?php echo __('List', 'kboard')?></a>
				<?php else:?>
				<a href="<?php echo esc_url($url->getBoardList())?>" class="kboard-default-button-small"><?php echo __('Back', 'kboard')?></a>
				<?php endif?>
			</div>
			<div class="right">
				<?php if($board->isWriter()) { ?>
				<button type="submit" class="kboard-default-button-small"><?php echo __('분석의뢰', 'kboard')?></button>
				<?php } //end if ?>
			</div>
		</div>
	</form>
</div>

<?php wp_enqueue_script('kboard-default-script', "{$skin_path}/script.js", array(), KBOARD_VERSION, true); ?>

 

좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기
워드프레스 에러 기술지원 서비스 전문가에게 맡기세요
워드프레스 에러 기술지원 서비스 전문가에게 맡기세요