From f051c13374fd4922f40c0033c615adf9552369ef Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Wed, 14 Oct 2015 07:36:32 -0500 Subject: [PATCH] list cust inv scripts with deleted orgs --- awx/main/access.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/access.py b/awx/main/access.py index ccac7c3163..b4a798fe21 100644 --- a/awx/main/access.py +++ b/awx/main/access.py @@ -1606,7 +1606,7 @@ class CustomInventoryScriptAccess(BaseAccess): model = CustomInventoryScript def get_queryset(self): - qs = self.model.objects.filter(active=True, organization__active=True).distinct() + qs = self.model.objects.filter(active=True).distinct() if not self.user.is_superuser: qs = qs.filter(Q(organization__admins__in=[self.user]) | Q(organization__users__in=[self.user])) return qs