Make invalid Student Proposals also accessible for Hosts, Mentors and Org admins. Previously only new and pending Student Proposals could be viewed.
authorPawel Solyga <Pawel.Solyga@gmail.com>
Tue, 31 Mar 2009 16:00:17 +0000
changeset 2041 9a9307b22312
parent 2040 f1370e1d0871
child 2042 0b8136fe4d43
Make invalid Student Proposals also accessible for Hosts, Mentors and Org admins. Previously only new and pending Student Proposals could be viewed. Patch by: Pawel Solyga Reviewed by: to-be-reviewed
app/soc/views/models/student_proposal.py
--- a/app/soc/views/models/student_proposal.py	Tue Mar 31 15:45:39 2009 +0000
+++ b/app/soc/views/models/student_proposal.py	Tue Mar 31 16:00:17 2009 +0000
@@ -84,7 +84,7 @@
         ('checkCanStudentPropose', ['scope_path', True])]
     rights['review'] = [('checkRoleAndStatusForStudentProposal',
             [['org_admin', 'mentor', 'host'], 
-            ['active'], ['new', 'pending']])]
+            ['active'], ['new', 'pending', 'invalid']])]
 
     new_params = {}
     new_params['logic'] = soc.logic.models.student_proposal.logic