Show management only to site admins

This commit is contained in:
seo committed 2026-06-12 15:38:09 +09:00
1 parent 8145dc6938
commit baeccf9d58
3 files changed
+21 -3

No files matched your search

+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' => [