Show management only to site admins

This commit is contained in:
seo
2026-06-12 15:38:09 +09:00
parent 8145dc6938
commit baeccf9d58
3 changed files with 21 additions and 3 deletions
+4
View File
@@ -66,6 +66,10 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
custom_json(['authenticated' => custom_has_auth_cookie()]);
}
if (isset($_GET['adminSession'])) {
custom_json(['admin' => custom_is_site_admin()]);
}
if (isset($_GET['failMessages'])) {
custom_json([
'failMessages' => [