Skip to content

Commit

Permalink
feat: exclude unlinked member records from enterprise
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinan029 committed Jan 16, 2025
1 parent 9779f3e commit 94d1e37
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion enterprise/api/v1/views/enterprise_customer_members.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ def get_members(self, request, *args, **kwargs):
FROM enterprise_enterprisecustomeruser ecu
INNER JOIN auth_user as au on ecu.user_id = au.id
LEFT JOIN auth_userprofile as aup on au.id = aup.user_id
WHERE ecu.enterprise_customer_id = %s
WHERE
ecu.enterprise_customer_id = %s
AND
ecu.linked = true
) SELECT * FROM users {user_query_filter} ORDER BY full_name;
"""
try:
Expand Down

0 comments on commit 94d1e37

Please sign in to comment.