From 9c564651a37d5db039c72bbc053ba0481adbe645 Mon Sep 17 00:00:00 2001 From: Sebastian Lohff Date: Tue, 2 May 2017 02:42:58 +0200 Subject: [PATCH] Allow everyone to check domains via API --- api/views.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/views.py b/api/views.py index aaceee3..68dcf1b 100644 --- a/api/views.py +++ b/api/views.py @@ -183,8 +183,8 @@ def checkDomain(request): try: domainName = Domain.fixName(request.GET.get('domain', '')) domain = Domain.objects.get(name=domainName) - if not domain.canEdit(request.user): - raise Domain.DoesNotExist() + #if not domain.canEdit(request.user): + # raise Domain.DoesNotExist() ret["success"] = True ret["domain"] = domain.name @@ -208,8 +208,8 @@ def checkRzone(request): try: rzonePk = int(request.GET.get('domain', '')) rzone = ReverseZone.objects.get(pk=rzonePk) - if not rzone.canEdit(request.user): - raise ReverseZone.DoesNotExist() + #if not rzone.canEdit(request.user): + # raise ReverseZone.DoesNotExist() ret["success"] = True # FIXME: change this if we ever have more than one...