From b29e16a198bb465116d00ad3458abd30a5a9ae88 Mon Sep 17 00:00:00 2001 From: thisgun Date: Mon, 26 Jan 2026 09:40:43 +0000 Subject: [PATCH] =?UTF-8?q?=EA=B2=8C=EC=8B=9C=ED=8C=90=20=EA=B4=80?= =?UTF-8?q?=EB=A6=AC=EC=9E=90=EA=B0=80=20=EA=B2=8C=EC=8B=9C=ED=8C=90=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=EC=8B=9C=20=EC=9E=90=EB=8F=99=EB=93=B1?= =?UTF-8?q?=EB=A1=9D=EB=B0=A9=EC=A7=80=20=EC=88=AB=EC=9E=90=EA=B0=80=20?= =?UTF-8?q?=ED=8B=80=EB=A0=B8=EC=8A=B5=EB=8B=88=EB=8B=A4=20=EB=9D=BC?= =?UTF-8?q?=EA=B3=A0=20=EB=82=98=EC=98=A4=EB=8A=94=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/board_form_update.php | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/adm/board_form_update.php b/adm/board_form_update.php index b5f7364b7..83ff74b52 100644 --- a/adm/board_form_update.php +++ b/adm/board_form_update.php @@ -39,14 +39,17 @@ $bo_include_tail = isset($_POST['bo_include_tail']) ? preg_replace(array("#[\\\] $check_captcha = false; // 관리자가 자동등록방지 CAPTCHA를 사용해야 할 경우 -if ($w === 'u') { - if (isset($board['bo_include_head'], $board['bo_include_tail']) && - ($board['bo_include_head'] !== $bo_include_head || $board['bo_include_tail'] !== $bo_include_tail)) { - $check_captcha = true; - } -} elseif ($w === '') { - if ($bo_include_head !== '_head.php' || $bo_include_tail !== '_tail.php') { - $check_captcha = true; +// 최고 관리자인 경우에만 수정가능 +if ($is_admin === 'super') { + if ($w === 'u') { + if (isset($board['bo_include_head'], $board['bo_include_tail']) && + ($board['bo_include_head'] !== $bo_include_head || $board['bo_include_tail'] !== $bo_include_tail)) { + $check_captcha = true; + } + } elseif ($w === '') { + if ($bo_include_head !== '_head.php' || $bo_include_tail !== '_tail.php') { + $check_captcha = true; + } } }