chore: restrict email notifications for removed users (#6100)
This commit is contained in:
parent
05d3e3ae45
commit
1420b7e7d3
3 changed files with 26 additions and 8 deletions
|
|
@ -353,6 +353,7 @@ class ExportWorkspaceUserActivityEndpoint(BaseAPIView):
|
|||
workspace__slug=slug,
|
||||
created_at__date=request.data.get("date"),
|
||||
project__project_projectmember__member=request.user,
|
||||
project__project_projectmember__is_active=True,
|
||||
actor_id=user_id,
|
||||
).select_related("actor", "workspace", "issue", "project")[:10000]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue