app/soc/views/models/survey.py
changeset 2752 fb3bed3eecd8
parent 2751 e8a98669ec8c
child 2766 93e4745ebdbd
equal deleted inserted replaced
2751:e8a98669ec8c 2752:fb3bed3eecd8
   696     # check if the current user is allowed to visit the read the survey
   696     # check if the current user is allowed to visit the read the survey
   697     allowed_to_read = False
   697     allowed_to_read = False
   698 
   698 
   699     try:
   699     try:
   700       rights.checkIsSurveyReadable(
   700       rights.checkIsSurveyReadable(
   701           {'key_name': survey_entity.key().name(),
   701           {'key_name': entity.key().name(),
   702            'prefix': survey_entity.prefix,
   702            'prefix': entity.prefix,
   703            'scope_path': survey_entity.scope_path,
   703            'scope_path': entity.scope_path,
   704            'link_id': survey_entity.link_id,
   704            'link_id': entity.link_id,
   705            'user': user_entity},
   705            'user': user_entity},
   706           survey_logic)
   706           survey_logic)
   707       allowed_to_read = True
   707       allowed_to_read = True
   708     except:
   708     except:
   709       pass
   709       pass