From 08f6b4deed417babeda68568f3ebba55bf1c52df Mon Sep 17 00:00:00 2001 From: hide_d Date: Wed, 13 May 2020 02:28:14 +0900 Subject: [PATCH] =?UTF-8?q?=EC=99=B8=EA=B5=90=EA=B6=8C=EC=9E=90=EB=A7=8C?= =?UTF-8?q?=20=EC=88=98=EC=A0=95=20=EA=B0=80=EB=8A=A5=ED=95=98=EB=8F=84?= =?UTF-8?q?=EB=A1=9D=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/j_set_npc_control.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hwe/j_set_npc_control.php b/hwe/j_set_npc_control.php index 08de3c90..3e05d1a8 100644 --- a/hwe/j_set_npc_control.php +++ b/hwe/j_set_npc_control.php @@ -53,7 +53,13 @@ if ($me['officer_level'] < 5) { 'reason'=>'수뇌가 아닙니다.', ]); } - +$permission = checkSecretPermission($me); +if ($permission < 4) { + Json::die([ + 'result'=>false, + 'reason'=>'권한이 부족합니다. 군주, 혹은 외교권자가 아닙니다.' + ]); +} function applyNationPolicy($policy, $nationID, $generalName):?string{ $db = DB::db();