app/soc/modules/ghop/views/models/student.py
changeset 3079 c491d96dce2c
parent 3078 bd001e9ab9d4
child 3088 08b9f4de6675
--- a/app/soc/modules/ghop/views/models/student.py	Tue Nov 03 17:07:10 2009 +0100
+++ b/app/soc/modules/ghop/views/models/student.py	Wed Nov 04 21:37:44 2009 +0100
@@ -72,10 +72,11 @@
     rights['edit'] = [('checkIsMyActiveRole', ghop_student_logic.logic)]
     rights['apply'] = [
         'checkIsUser',
-        ('checkIsActivePeriod', ['student_signup', 'scope_path']),
+        ('checkIsActivePeriod', ['student_signup', 'scope_path',
+            ghop_program_logic.logic]),
         ('checkIsNotParticipatingInProgramInScope',
-        [ghop_student_logic.logic, ghop_org_admin_logic.logic,
-        ghop_mentor_logic.logic]),
+            [ghop_program_logic.logic, ghop_student_logic.logic,
+            ghop_org_admin_logic.logic, ghop_mentor_logic.logic]),
         'checkCanApply']
     rights['manage'] = [('checkIsMyActiveRole', ghop_student_logic.logic)]
     rights['list_student_tasks'] = [('checkHasActiveRoleForScope',
@@ -163,6 +164,7 @@
 
     return result
 
+
 view = View()
 
 apply = decorators.view(view.apply)