app/soc/views/site/docs/list.py
changeset 294 1fdaab4a6ef2
parent 272 00cea07656c0
child 299 a1cc853a56e5
--- a/app/soc/views/site/docs/list.py	Thu Oct 09 23:38:27 2008 +0000
+++ b/app/soc/views/site/docs/list.py	Thu Oct 09 23:48:20 2008 +0000
@@ -23,6 +23,7 @@
 
 
 from soc.logic import works
+from soc.logic.helper import access
 from soc.views import simple
 from soc.views import helper
 import soc.views.helper.lists
@@ -45,14 +46,15 @@
     A subclass of django.http.HttpResponse which either contains the form to
     be filled out, or a redirect to the correct view in the interface.
   """
+
+  try:
+    access.checkIsDeveloper(request)
+  except  soc.logic.out_of_band.AccessViolationResponse, alt_response:
+    return alt_response.response()
+
   # create default template context for use with any templates
   context = helper.responses.getUniversalContext(request)
 
-  alt_response = simple.getAltResponseIfNotDeveloper(request,
-                                                     context=context)
-  if alt_response:
-    return alt_response  
-  
   offset, limit = helper.lists.cleanListParameters(
       offset=request.GET.get('offset'), limit=request.GET.get('limit'))