added in ability to delete a user if they are part of your organization

This commit is contained in:
Rebeccah 2019-09-27 11:02:47 -04:00
parent b858001c8f
commit 69924c9544

View File

@ -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):