Students can now only get a student role during the student signup period.
authorLennard de Rijk <ljvderijk@gmail.com>
Tue, 17 Feb 2009 20:07:20 +0000
changeset 1382 293a14668dc9
parent 1381 2cfce3831fc6
child 1383 18383d2e5a5b
Students can now only get a student role during the student signup period. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/views/models/student.py
--- a/app/soc/views/models/student.py	Tue Feb 17 19:40:13 2009 +0000
+++ b/app/soc/views/models/student.py	Tue Feb 17 20:07:20 2009 +0000
@@ -60,7 +60,7 @@
     rights['delete'] = ['checkIsDeveloper']
     rights['apply'] = [
         'checkIsUser',
-        ('checkIsActivePeriod', ['program', 'scope_path']),
+        ('checkIsActivePeriod', ['student_signup', 'scope_path']),
         'checkIsNotParticipatingInProgramInScope',
         ]
     rights['manage'] = [