Show 'List my Organization Applications' link even after signup closed
authorSverre Rabbelier <srabbelier@gmail.com>
Sat, 14 Mar 2009 00:12:22 +0000
changeset 1848 a0cae3be1412
parent 1847 15ad1ee02dc5
child 1849 f8728d5e2e07
Show 'List my Organization Applications' link even after signup closed Patch by: Sverre Rabbelier
app/soc/views/models/program.py
--- a/app/soc/views/models/program.py	Fri Mar 13 23:18:06 2009 +0000
+++ b/app/soc/views/models/program.py	Sat Mar 14 00:12:22 2009 +0000
@@ -527,12 +527,12 @@
           (redirects.getApplyRedirect(program_entity, {'url_name': 'org_app'}),
           "Apply to become an Organization", 'any_access')]
 
-      if user:
-        # add the 'List my Organization Applications' link
-        items += [
-            (redirects.getListSelfRedirect(program_entity,
-                                           {'url_name' : 'org_app'}),
-             "List My Organization Applications", 'any_access')]
+    if user and timeline_helper.isAfterEvent(timeline_entity, 'org_signup_start'):
+      # add the 'List my Organization Applications' link
+      items += [
+          (redirects.getListSelfRedirect(program_entity,
+                                         {'url_name' : 'org_app'}),
+           "List My Organization Applications", 'any_access')]
 
     # get the student entity for this user and program
     filter = {'user': user,