Update: 2026-08-03 11:52:03

This commit is contained in:
Hamza-Ayed
2026-08-03 11:52:03 +03:00
parent 4abfd30ddd
commit ec467b01c6
20 changed files with 152 additions and 5 deletions
+4
View File
@@ -1,6 +1,10 @@
<?php
require_once __DIR__ . '/../../connect.php';
// $con_tracking لا يعرّفه connect.php — كان الاستدعاء يسقط بـ
// "Call to a member function prepare() on null".
$con_tracking = Database::get('tracking');
if ($role !== 'admin' && $role !== 'super_admin') {
http_response_code(403);
echo json_encode(['error' => 'Unauthorized: Admin access required']);