diff --git a/app/Modules/Admin/AdminController.php b/app/Modules/Admin/AdminController.php index 2e98ca8..7bb9664 100644 --- a/app/Modules/Admin/AdminController.php +++ b/app/Modules/Admin/AdminController.php @@ -85,7 +85,7 @@ final class AdminController $stmt->execute(); $counts = $stmt->fetchAll(); - $stmt = $db->prepare("SELECT * FROM queue_jobs WHERE status IN ('failed', 'dead') ORDER BY created_at DESC LIMIT 50"); + $stmt = $db->prepare("SELECT * FROM queue_jobs WHERE status IN ('pending','processing','failed','dead') ORDER BY created_at DESC LIMIT 100"); $stmt->execute(); $failedJobs = $stmt->fetchAll(); diff --git a/app/Modules/Companies/CompanyController.php b/app/Modules/Companies/CompanyController.php index 801a176..85b60bb 100644 --- a/app/Modules/Companies/CompanyController.php +++ b/app/Modules/Companies/CompanyController.php @@ -21,7 +21,7 @@ final class CompanyController $role = $request->user->role ?? 'viewer'; $assignedCompanyId = $request->user->assigned_company_id ?? null; - if ($role === 'super_admin') { + if (in_array($role, ['admin', 'super_admin'], true)) { $companies = $this->companyModel->findByTenant($tenantId); } else { // Filter by assigned company diff --git a/public/shell.php b/public/shell.php index 2b99121..f41abb5 100644 --- a/public/shell.php +++ b/public/shell.php @@ -3,1070 +3,70 @@
-