mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 11:50:42 -03:30
Merge pull request #1693 from anoek/devel
Fixed duplicate active_roles entries
This commit is contained in:
commit
077db7931f
@ -437,5 +437,5 @@ def get_roles_on_resource(resource, accessor):
|
||||
ancestor__in=roles,
|
||||
content_type_id=ContentType.objects.get_for_model(resource).id,
|
||||
object_id=resource.id
|
||||
).values_list('role_field', flat=True)
|
||||
).values_list('role_field', flat=True).distinct()
|
||||
]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user