Fix copy/paste fail in Survey results view regarding allowed_to_read.
authorLennard de Rijk <ljvderijk@gmail.com>
Mon, 10 Aug 2009 18:57:00 -0700
changeset 2752 fb3bed3eecd8
parent 2751 e8a98669ec8c
child 2753 11d510941d2f
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.
app/soc/views/models/survey.py
--- 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