mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
added in ability to delete a user if they are part of your organization
This commit is contained in:
parent
b858001c8f
commit
69924c9544
@ -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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user