mirror of
https://github.com/ansible/awx.git
synced 2026-11-22 00:06:10 -03:30
Made it so org auditors can see all users if ORG_ADMINS_CAN_SEE_ALL_USERS is true
Addresses #2706
This commit is contained in:
+2
-1
@@ -224,7 +224,8 @@ class UserAccess(BaseAccess):
|
||||
if self.user.is_superuser:
|
||||
return User.objects.all()
|
||||
|
||||
if tower_settings.ORG_ADMINS_CAN_SEE_ALL_USERS and self.user.admin_of_organizations.exists():
|
||||
if tower_settings.ORG_ADMINS_CAN_SEE_ALL_USERS and \
|
||||
(self.user.admin_of_organizations.exists() or self.user.auditor_of_organizations.exists()):
|
||||
return User.objects.all()
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user