Update: 2026-08-03 15:22:47
This commit is contained in:
@@ -2,7 +2,14 @@
|
||||
// Admin/v2/quality/blacklist_manager.php
|
||||
require_once __DIR__ . '/../../../connect.php';
|
||||
require_once __DIR__ . '/../../../encrypt_decrypt.php';
|
||||
require_once __DIR__ . '/../security/audit_logs_helper.php'; // إذا كان متاحاً، وإلا سننفذ الإدخال مباشرة
|
||||
// audit_logs_helper.php لم يوجد قط في المستودع، والتعليق الأصلي كان
|
||||
// "إذا كان متاحاً، وإلا سننفذ الإدخال مباشرة" — لكن require_once قاتل
|
||||
// لا اختياري، فكانت الشاشة تسقط دائماً. الملف اختياري فعلاً: هذا الملف
|
||||
// يكتب في admin_audit_log مباشرةً أدناه.
|
||||
$auditHelper = __DIR__ . '/../security/audit_logs_helper.php';
|
||||
if (file_exists($auditHelper)) {
|
||||
require_once $auditHelper;
|
||||
}
|
||||
|
||||
if ($role !== 'admin' && $role !== 'super_admin') {
|
||||
jsonError("Unauthorized", 403);
|
||||
|
||||
Reference in New Issue
Block a user