Students can not list their own projects before the accepted students announced deadline.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- 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