fix:영업파트너 목록에서 비활성화된 사용자 제외
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user