mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 08:18:43 -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
|
return False
|
||||||
if self.user.is_superuser:
|
if self.user.is_superuser:
|
||||||
return True
|
return True
|
||||||
|
if self.can_admin(obj, None):
|
||||||
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def can_attach(self, obj, sub_obj, relationship, *args, **kwargs):
|
def can_attach(self, obj, sub_obj, relationship, *args, **kwargs):
|
||||||
|
|||||||
Reference in New Issue
Block a user