mirror of
https://github.com/ansible/awx.git
synced 2026-02-24 22:46:01 -03:30
Add missing host_qs.
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user