런처 관리자 세션 확인 우선 처리

This commit is contained in:
seo
2026-07-10 19:40:58 +09:00
parent 50005fea70
commit 6054479cee
+4 -4
View File
@@ -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]);
}