mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03:30
Return distinct labels for non-admin Users
This commit is contained in:
parent
ce588a6af5
commit
7583525366
@ -2627,7 +2627,7 @@ class LabelAccess(BaseAccess):
|
||||
return self.model.objects.filter(
|
||||
Q(organization__in=Organization.accessible_pk_qs(self.user, 'read_role'))
|
||||
| Q(unifiedjobtemplate_labels__in=UnifiedJobTemplate.accessible_pk_qs(self.user, 'read_role'))
|
||||
)
|
||||
).distinct()
|
||||
|
||||
@check_superuser
|
||||
def can_add(self, data):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user