Skip to content

Commit

Permalink
fix: enterprise-customer-support should only return learners from giv…
Browse files Browse the repository at this point in the history
…en customer
  • Loading branch information
marlonkeating committed Jan 21, 2025
1 parent 7335ab2 commit 8be5940
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ Unreleased
----------
* nothing unreleased

[5.6.4]
--------
* fix: enterprise-customer-support should only return learners from given customer

[5.6.3]
--------
* feat: exclude unlinked member records from enterprise-customer-members and enterprise_group endpoints
Expand Down
2 changes: 1 addition & 1 deletion enterprise/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Your project description goes here.
"""

__version__ = "5.6.3"
__version__ = "5.6.4"
2 changes: 1 addition & 1 deletion enterprise/api/v1/views/enterprise_customer_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def filter_queryset_by_user_query(self, queryset, is_pending_user=False):

if user_query:
if not is_pending_user:
queryset = models.EnterpriseCustomerUser.objects.filter(
queryset = queryset.filter(
user_id__in=User.objects.filter(
Q(email__icontains=user_query) | Q(username__icontains=user_query)
)
Expand Down

0 comments on commit 8be5940

Please sign in to comment.