Show management only to site admins
This commit is contained in:
1 parent
8145dc6938
commit
baeccf9d58
3 files changed
+21
-3
No files matched your search
@@ -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' => [
|
||||
|
||||
Reference in new issue
Block a user