mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 09:27:36 -02:30
Add missing host_qs.
This commit is contained in:
@@ -3510,6 +3510,7 @@ class JobJobEventsList(BaseJobEventsList):
|
|||||||
qs = qs.prefetch_related('hosts', 'children')
|
qs = qs.prefetch_related('hosts', 'children')
|
||||||
if self.request.user.is_superuser or self.request.user.is_system_auditor:
|
if self.request.user.is_superuser or self.request.user.is_system_auditor:
|
||||||
return qs.all()
|
return qs.all()
|
||||||
|
host_qs = self.request.user.get_queryset(Host)
|
||||||
return qs.filter(Q(host__isnull=True) | Q(host__in=host_qs))
|
return qs.filter(Q(host__isnull=True) | Q(host__in=host_qs))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user