# HG changeset patch # User Sverre Rabbelier # Date 1246670592 25200 # Node ID 7c120301989cb779824c374b78f0bd6769e1d83a # Parent 859ada69db69864263bc8b255e3209e7ee33adb4 survey access: stylefix and remove public role type diff -r 859ada69db69 -r 7c120301989c 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)