mirror of
https://github.com/ansible/awx.git
synced 2026-02-27 15:58:45 -03:30
added in ability to delete a user if they are part of your organization
This commit is contained in:
@@ -663,6 +663,8 @@ class UserAccess(BaseAccess):
|
||||
return False
|
||||
if self.user.is_superuser:
|
||||
return True
|
||||
if self.can_admin(obj, None):
|
||||
return True
|
||||
return False
|
||||
|
||||
def can_attach(self, obj, sub_obj, relationship, *args, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user