Brown paper bag fix for Student Project Manage and Edit access check.
authorLennard de Rijk <ljvderijk@gmail.com>
Sat, 11 Apr 2009 13:32:35 +0000
changeset 2152 3c3f0cd9873d
parent 2151 f58515b0b2e1
child 2153 7c8adb14c7fb
Brown paper bag fix for Student Project Manage and Edit access check. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/views/models/student_project.py
--- 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 = {}