Brown paper bag fix for Student Project Manage and Edit access check.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- a/app/soc/views/models/student_project.py Sat Apr 11 13:19:23 2009 +0000
+++ b/app/soc/views/models/student_project.py Sat Apr 11 13:32:35 2009 +0000
@@ -69,13 +69,13 @@
rights['list'] = ['checkIsDeveloper']
rights['manage'] = [('checkHasActiveRoleForScope',
org_admin_logic),
- ('checkStudentProjectHasStatus', ['accepted', 'mid_term_passed'])]
+ ('checkStudentProjectHasStatus', [['accepted', 'mid_term_passed']])]
rights['manage_overview'] = [('checkHasActiveRoleForScope',
org_admin_logic)]
# TODO lack of better name here!
rights['st_edit'] = ['checkIsMyStudentProject',
- ('checkStudentProjectHasStatus',
- ['accepted', 'mid_term_passed', 'passed'])
+ ('checkStudentProjectHasStatus',
+ [['accepted', 'mid_term_passed', 'passed']])
]
new_params = {}