survey access: stylefix and remove public role type
authorSverre Rabbelier <sverre@rabbelier.nl>
Fri, 03 Jul 2009 18:23:12 -0700
changeset 2521 7c120301989c
parent 2520 859ada69db69
child 2522 b97b3c8e5736
survey access: stylefix and remove public role type
app/soc/views/helper/access.py
--- a/app/soc/views/helper/access.py	Fri Jul 03 22:36:10 2009 +0200
+++ b/app/soc/views/helper/access.py	Fri Jul 03 18:23:12 2009 -0700
@@ -1675,7 +1675,7 @@
     """
 
     if django_args['prefix'] != 'program':
-      # TODO : update when generic surveys are allowe
+      # TODO: update when generic surveys are allowe
       return self.deny(django_args)
 
     survey = survey_logic.getFromKeyFieldsOr404(django_args)
@@ -1685,10 +1685,6 @@
 
     role = survey.taking_access
 
-    if role == 'public':
-      # TODO : are we sure we want public surveys?
-      return self.allow(django_args)
-
     if role == 'user':
       return self.checkIsUser(django_args)