From 6054479cee6ae45e66cf09db3cad9c04699bed8d Mon Sep 17 00:00:00 2001 From: seo Date: Fri, 10 Jul 2026 19:40:58 +0900 Subject: [PATCH] =?UTF-8?q?=EB=9F=B0=EC=B2=98=20=EA=B4=80=EB=A6=AC?= =?UTF-8?q?=EC=9E=90=20=EC=84=B8=EC=85=98=20=ED=99=95=EC=9D=B8=20=EC=9A=B0?= =?UTF-8?q?=EC=84=A0=20=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api.php b/api.php index 3fd9230..d63a51b 100644 --- a/api.php +++ b/api.php @@ -72,15 +72,15 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { if ($_SERVER['REQUEST_METHOD'] === 'GET') { if (isset($_GET['session'])) { - if (custom_has_auth_cookie()) { - custom_json(['authenticated' => true, 'admin' => custom_auth_cookie_is_admin()]); - } - if (custom_is_site_admin()) { custom_issue_auth_cookie(true); custom_json(['authenticated' => true, 'admin' => true]); } + if (custom_has_auth_cookie()) { + custom_json(['authenticated' => true, 'admin' => false]); + } + custom_json(['authenticated' => false, 'admin' => false]); }