Fix copy/paste fail in Survey results view regarding allowed_to_read.
allowed_to_read would never be set to True since survey_entity was not defined.
--- a/app/soc/views/models/survey.py Mon Aug 10 18:49:34 2009 -0700
+++ b/app/soc/views/models/survey.py Mon Aug 10 18:57:00 2009 -0700
@@ -698,10 +698,10 @@
try:
rights.checkIsSurveyReadable(
- {'key_name': survey_entity.key().name(),
- 'prefix': survey_entity.prefix,
- 'scope_path': survey_entity.scope_path,
- 'link_id': survey_entity.link_id,
+ {'key_name': entity.key().name(),
+ 'prefix': entity.prefix,
+ 'scope_path': entity.scope_path,
+ 'link_id': entity.link_id,
'user': user_entity},
survey_logic)
allowed_to_read = True