fix:영업파트너 목록에서 비활성화된 사용자 제외

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
김보곤
2026-02-02 09:26:16 +09:00
parent 7b069d6197
commit 06a0146b12

View File

@@ -380,8 +380,9 @@ public function getSalesPartners(array $filters = [])
{
$tenantId = session('selected_tenant_id', 1);
// 영업 관련 역할을 가진 사용자 조회
// 영업 관련 역할을 가진 사용자 조회 (활성화된 사용자만)
$query = User::query()
->where('is_active', true)
->whereHas('userRoles', function ($q) use ($tenantId) {
$q->where('tenant_id', $tenantId)
->whereHas('role', function ($rq) {