diff --git a/app/Models/Scopes/TenantScope.php b/app/Models/Scopes/TenantScope.php index 62efb82..2c0f0cd 100644 --- a/app/Models/Scopes/TenantScope.php +++ b/app/Models/Scopes/TenantScope.php @@ -25,7 +25,7 @@ public function apply(Builder $builder, Model $model) ?? $request->header('X-TENANT-ID') ?? auth()->user()?->tenant_id; - if ($tenantId) { + if ($tenantId !== null) { $builder->where($model->getTable().'.tenant_id', $tenantId); } }