From 69924c9544de62c2eb0d83947d4fdc9eebbb407a Mon Sep 17 00:00:00 2001 From: Rebeccah Date: Fri, 27 Sep 2019 11:02:47 -0400 Subject: [PATCH] added in ability to delete a user if they are part of your organization --- awx/main/access.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/awx/main/access.py b/awx/main/access.py index e9957656de..0435509c8e 100644 --- a/awx/main/access.py +++ b/awx/main/access.py @@ -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):