[FIX] Incorrect display of non public surveys

bzr revid: rim@openerp.com-20140122091801-zeesevjbnih2wuxq
This commit is contained in:
Richard Mathot (OpenERP) 2014-01-22 10:18:01 +01:00
parent 81c60f7123
commit 1b309f7ed7
1 changed files with 1 additions and 0 deletions

View File

@ -84,6 +84,7 @@ class WebsiteSurvey(http.Controller):
cr, uid, context = request.cr, request.uid, request.context
survey_obj = request.registry['survey.survey']
survey_ids = survey_obj.search(cr, uid, [('state', '=', 'open'),
('visible_to_user', '=', True),
('page_ids', '!=', 'None')],
context=context)
surveys = survey_obj.browse(cr, uid, survey_ids, context=context)