Skip to content
Permalink
Browse files

bug fix: list dns zones

  • Loading branch information
usmannasir committed Jan 18, 2020
1 parent dcb2c2b commit 5c491a2e073b63bf4b2734ceec563c09611847ff
Showing with 6 additions and 6 deletions.
  1. +6 −6 plogical/acl.py
@@ -444,22 +444,22 @@ def findAllDomains(currentACL, userID):
domainsList = []

if currentACL['admin'] == 1:
domains = Domains.objects.all()
domains = Websites.objects.all()
for items in domains:
domainsList.append(items.name)
domainsList.append(items.domain)
else:
admin = Administrator.objects.get(pk=userID)
domains = admin.domains_set.all()
domains = admin.websites_set.all()

for items in domains:
domainsList.append(items.name)
domainsList.append(items.domain)

admins = Administrator.objects.filter(owner=admin.pk)

for items in admins:
doms = items.domains_set.all()
doms = items.websites_set.all()
for dom in doms:
domainsList.append(dom.name)
domainsList.append(dom.domain)

return domainsList

0 comments on commit 5c491a2

Please sign in to comment.
You can’t perform that action at this time.