Returned access checks in Survey View to the right state.
This got bugged in James's commt.
--- a/app/soc/views/models/survey.py Tue Jun 30 18:16:33 2009 +0200
+++ b/app/soc/views/models/survey.py Wed Jul 01 08:29:49 2009 +0200
@@ -97,13 +97,12 @@
rights = access.Checker(params)
rights['any_access'] = ['allow']
- rights['show'] = ['checkIsSurveyReadable']
+ rights['show'] = [('checkIsSurveyReadable', survey_logic)]
rights['create'] = ['checkIsUser']
- rights['edit'] = ['checkIsSurveyWritable']
- rights['delete'] = ['checkIsSurveyWritable']
+ rights['edit'] = [('checkIsSurveyWritable', suvery_logic)]
+ rights['delete'] = [('checkIsSurveyWritable', survey_logic)]
rights['list'] = ['checkDocumentList']
rights['pick'] = ['checkDocumentPick']
- rights['grade'] = ['checkIsSurveyGradable']
new_params = {}
new_params['logic'] = survey_logic