Allow everyone to check domains via API
This commit is contained in:
parent
708d5e1a73
commit
9c564651a3
|
@ -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...
|
||||
|
|
Loading…
Reference in New Issue