🚀 مُصادَق: تحديث برمجي جديد 2026-05-03 15:33
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user