Students can not list their own projects before the accepted students announced deadline.
authorLennard de Rijk <ljvderijk@gmail.com>
Sun, 19 Apr 2009 10:37:10 +0000
changeset 2239 9a47a64dcc08
parent 2238 71f4d7642afb
child 2240 df37a3ff8ed5
Students can not list their own projects before the accepted students announced deadline. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/views/models/student.py
--- a/app/soc/views/models/student.py	Sun Apr 19 10:29:57 2009 +0000
+++ b/app/soc/views/models/student.py	Sun Apr 19 10:37:10 2009 +0000
@@ -69,7 +69,9 @@
     rights['manage'] = [
         ('checkIsAllowedToManageRole', [soc.logic.models.host.logic])]
     rights['list_projects'] = [
-        ('checkHasActiveRoleForScope', student_logic.logic)]
+        ('checkHasActiveRoleForScope', student_logic.logic),
+        ('checkIsAfterEvent', ['accepted_students_announced_deadline',
+                               'scope_path'])]
 
     new_params = {}
     new_params['logic'] = soc.logic.models.student.logic