Browse Source

Allow everyone to check domains via API

Sebastian Lohff 2 years ago
parent
commit
9c564651a3
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      api/views.py

+ 4
- 4
api/views.py View File

@@ -183,8 +183,8 @@ def checkDomain(request):
183 183
 	try:
184 184
 		domainName = Domain.fixName(request.GET.get('domain', ''))
185 185
 		domain = Domain.objects.get(name=domainName)
186
-		if not domain.canEdit(request.user):
187
-			raise Domain.DoesNotExist()
186
+		#if not domain.canEdit(request.user):
187
+		#	raise Domain.DoesNotExist()
188 188
 
189 189
 		ret["success"] = True
190 190
 		ret["domain"] = domain.name
@@ -208,8 +208,8 @@ def checkRzone(request):
208 208
 	try:
209 209
 		rzonePk = int(request.GET.get('domain', ''))
210 210
 		rzone = ReverseZone.objects.get(pk=rzonePk)
211
-		if not rzone.canEdit(request.user):
212
-			raise ReverseZone.DoesNotExist()
211
+		#if not rzone.canEdit(request.user):
212
+		#	raise ReverseZone.DoesNotExist()
213 213
 
214 214
 		ret["success"] = True
215 215
 		# FIXME: change this if we ever have more than one...

Loading…
Cancel
Save