add new featurs like realtime 2026-5-10-14
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user