equal
deleted
inserted
replaced
50 rights['show'] = [('checkIsSurveyReadable', project_survey_logic)] |
50 rights['show'] = [('checkIsSurveyReadable', project_survey_logic)] |
51 rights['create'] = ['checkIsDeveloper'] # TODO(ljvderijk) proper access check |
51 rights['create'] = ['checkIsDeveloper'] # TODO(ljvderijk) proper access check |
52 rights['edit'] = [('checkIsSurveyWritable', project_survey_logic)] |
52 rights['edit'] = [('checkIsSurveyWritable', project_survey_logic)] |
53 rights['delete'] = ['checkIsDeveloper'] # TODO: fix deletion of Surveys |
53 rights['delete'] = ['checkIsDeveloper'] # TODO: fix deletion of Surveys |
54 rights['list'] = ['checkDocumentList'] |
54 rights['list'] = ['checkDocumentList'] |
55 # TODO(ljvderijk) add Project check |
55 rights['take'] = [('checkIsSurveyTakeable', project_survey_logic), |
56 rights['take'] = [('checkIsSurveyTakeable', project_survey_logic)] |
56 ('checkIsAllowedToTakeProjectSurveyAs', |
|
57 [project_survey_logic, 'student', 'project'])] |
|
58 |
57 |
59 |
58 new_params = {} |
60 new_params = {} |
59 new_params['logic'] = project_survey_logic |
61 new_params['logic'] = project_survey_logic |
60 new_params['rights'] = rights |
62 new_params['rights'] = rights |
61 |
63 |