mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 18:21:12 +03:00
Fixed up the _old_access.py UserAccess queryset
This commit is contained in:
parent
6427526686
commit
1bf4fdbff1
@ -206,9 +206,9 @@ class UserAccess(BaseAccess):
|
|||||||
return qs
|
return qs
|
||||||
return qs.filter(
|
return qs.filter(
|
||||||
Q(pk=self.user.pk) |
|
Q(pk=self.user.pk) |
|
||||||
Q(organizations__in=self.user.deprecated_admin_of_organizations) |
|
Q(deprecated_organizations__in=self.user.deprecated_admin_of_organizations.all()) |
|
||||||
Q(organizations__in=self.user.deprecated_organizations) |
|
Q(deprecated_organizations__in=self.user.deprecated_organizations.all()) |
|
||||||
Q(deprecated_teams__in=self.user.deprecated_teams)
|
Q(deprecated_teams__in=self.user.deprecated_teams.all())
|
||||||
).distinct()
|
).distinct()
|
||||||
|
|
||||||
def can_add(self, data):
|
def can_add(self, data):
|
||||||
|
Loading…
Reference in New Issue
Block a user