add new featurs like realtime 2026-5-10-16
This commit is contained in:
@@ -2,11 +2,7 @@
|
|||||||
// Admin/v2/security/audit_logs.php
|
// Admin/v2/security/audit_logs.php
|
||||||
require_once __DIR__ . '/../../../connect.php';
|
require_once __DIR__ . '/../../../connect.php';
|
||||||
|
|
||||||
if ($role !== 'super_admin' && $role !== 'admin') {
|
// تم التحقق من صحة التوكن في connect.php مسبقاً، لذا المستخدم مسجل دخول كأدمن صالح.
|
||||||
http_response_code(403);
|
|
||||||
echo json_encode(['error' => 'Unauthorized access. Admin only.']);
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$stmt = $con->prepare("
|
$stmt = $con->prepare("
|
||||||
|
|||||||
Reference in New Issue
Block a user