Skip to content

Commit

Permalink
[RBAC] Update related name to reflect upstream DAB change (ansible#15093
Browse files Browse the repository at this point in the history
)

Update related name to reflect upstream DAB change
  • Loading branch information
AlanCoding committed Apr 11, 2024
1 parent 97605c5 commit 390c2d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion awx/api/generics.py
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ def get_queryset(self):
qs = User.objects.filter(has_roles__in=ancestors) | User.objects.filter(is_superuser=True)
auditor_role = RoleDefinition.objects.filter(name="System Auditor").first()
if auditor_role:
qs |= User.objects.filter(roleuserassignment__role_definition=auditor_role)
qs |= User.objects.filter(role_assignments__role_definition=auditor_role)
return qs.distinct()

roles = set(Role.objects.filter(content_type=content_type, object_id=obj.id))
Expand Down

0 comments on commit 390c2d8

Please sign in to comment.