mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 19:30:39 -03:30
Add missing host_qs.
This commit is contained in:
parent
1ce81f9640
commit
2e7e424109
@ -3510,6 +3510,7 @@ class JobJobEventsList(BaseJobEventsList):
|
||||
qs = qs.prefetch_related('hosts', 'children')
|
||||
if self.request.user.is_superuser or self.request.user.is_system_auditor:
|
||||
return qs.all()
|
||||
host_qs = self.request.user.get_queryset(Host)
|
||||
return qs.filter(Q(host__isnull=True) | Q(host__in=host_qs))
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user