add new featurs like realtime 2026-5-10-14

This commit is contained in:
Hamza-Ayed
2026-05-10 01:26:40 +03:00
parent 237d37f583
commit 1beb5782b8

View File

@@ -2,9 +2,9 @@
// Admin/v2/security/audit_logs.php
require_once __DIR__ . '/../../../connect.php';
if ($role !== 'super_admin') {
if ($role !== 'super_admin' && $role !== 'admin') {
http_response_code(403);
echo json_encode(['error' => 'Unauthorized access. Super Admin only.']);
echo json_encode(['error' => 'Unauthorized access. Admin only.']);
exit;
}