app/soc/views/models/survey.py
changeset 2546 df7e4291c23c
parent 2543 4c95d717a976
child 2558 ba32a4f5716b
--- a/app/soc/views/models/survey.py	Sun Jul 05 12:19:19 2009 +0200
+++ b/app/soc/views/models/survey.py	Sun Jul 05 12:57:09 2009 +0200
@@ -852,15 +852,19 @@
         # check if the current user is allowed to visit the take Survey page
         allowed_to_take = False
 
-        rights.checkIsSurveyTakeable(
-            {'key_name': survey_entity.key().name(),
-             'prefix': survey_entity.prefix,
-             'scope_path': survey_entity.scope_path,
-             'link_id': survey_entity.link_id,
-             'user': user},
-            survey_logic,
-            check_time=False)
-        allowed_to_take = True
+        try:
+          rights.checkIsSurveyTakeable(
+              {'key_name': survey_entity.key().name(),
+               'prefix': survey_entity.prefix,
+               'scope_path': survey_entity.scope_path,
+               'link_id': survey_entity.link_id,
+               'user': user},
+              survey_logic,
+              check_time=False)
+          allowed_to_take = True
+        except:
+          pass
+
         # cache ACL for a given entity.taking_access
         survey_rights[survey_entity.taking_access] = allowed_to_take