mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 18:40:01 -03:30
count -> exists
This commit is contained in:
parent
6b5c4338cc
commit
156aeb931f
@ -644,7 +644,7 @@ class ProjectAccess(BaseAccess):
|
||||
if self.user.is_superuser:
|
||||
return True
|
||||
qs = Organization.accessible_objects(self.user, ALL_PERMISSIONS)
|
||||
return bool(qs.count() > 0)
|
||||
return qs.exists()
|
||||
|
||||
def can_change(self, obj, data):
|
||||
if self.user.is_superuser:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user