🚀 مُصادَق: تحديث برمجي جديد 2026-05-03 15:33

This commit is contained in:
Hamza-Ayed
2026-05-03 15:33:02 +03:00
parent 06dc3885d7
commit e182faad1d
3 changed files with 61 additions and 1061 deletions

View File

@@ -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