From c9f7f7ab0899ab979260591cbcbeb6ff8ea3441c Mon Sep 17 00:00:00 2001 From: hide_d Date: Mon, 18 Jun 2018 10:11:56 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B3=B5=EC=A7=80=20=EC=88=98=EC=A0=95=20?= =?UTF-8?q?=EB=B6=88=EA=B0=80=EB=8A=A5=ED=95=9C=20=EB=B2=84=EA=B7=B8=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 --- i_entrance/j_server_change_status.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/i_entrance/j_server_change_status.php b/i_entrance/j_server_change_status.php index 67f9d2a1..6b791b41 100644 --- a/i_entrance/j_server_change_status.php +++ b/i_entrance/j_server_change_status.php @@ -60,7 +60,10 @@ function doServerModeSet($server, $action, &$response, $session){ function doAdminPost($action, $notice, $server, $session){ $response = ['result' => 'FAIL']; - if($action == 'notice' && ($userGrade >= 5 || in_array('notice', $serverAcl))) { + $globalAcl = $session->acl['global']??[]; + $userGrade = $session->userGrade; + + if($action == 'notice' && ($userGrade >= 5 || in_array('notice', $globalAcl))) { RootDB::db()->update('system', ['NOTICE'=>$notice], true); $response['result'] = 'SUCCESS'; return $response;