Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
회원이 쓴 공지글을 수정할 경우 공지가 풀리는 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Mar 19, 2018
1 parent 897c6ec commit 7438ceb
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions bbs/write_update.php
Expand Up @@ -129,18 +129,23 @@

if ($w == '' || $w == 'u') {

// 외부에서 글을 등록할 수 있는 버그가 존재하므로 공지는 관리자만 등록이 가능해야 함
if (!$is_admin && $notice) {
alert('관리자만 공지할 수 있습니다.');
}

//회원 자신이 쓴글을 수정할 경우 공지가 풀리는 경우가 있음
if($w =='u' && $board['bo_notice'] && in_array($wr['wr_id'], $notice_array)){
$notice = 1;
}

// 김선용 1.00 : 글쓰기 권한과 수정은 별도로 처리되어야 함
if($w =='u' && $member['mb_id'] && $wr['mb_id'] == $member['mb_id']) {
;
} else if ($member['mb_level'] < $board['bo_write_level']) {
alert('글을 쓸 권한이 없습니다.');
}

// 외부에서 글을 등록할 수 있는 버그가 존재하므로 공지는 관리자만 등록이 가능해야 함
if (!$is_admin && $notice) {
alert('관리자만 공지할 수 있습니다.');
}

} else if ($w == 'r') {

if (in_array((int)$wr_id, $notice_array)) {
Expand Down

0 comments on commit 7438ceb

Please sign in to comment.