🚀 مُصادَق: تحديث برمجي جديد 2026-05-03 15:33
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
1118
public/shell.php
1118
public/shell.php
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user