From 1beb5782b89e14029604a0867b6dfb1917a14ad8 Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Sun, 10 May 2026 01:26:40 +0300 Subject: [PATCH] add new featurs like realtime 2026-5-10-14 --- Admin/v2/security/audit_logs.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Admin/v2/security/audit_logs.php b/Admin/v2/security/audit_logs.php index 4e6f439..22f1397 100644 --- a/Admin/v2/security/audit_logs.php +++ b/Admin/v2/security/audit_logs.php @@ -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; }