Org applications can now be deleted up to the deadline.
authorLennard de Rijk <ljvderijk@gmail.com>
Thu, 19 Mar 2009 08:04:07 +0000
changeset 1931 b5d0e70c8607
parent 1930 2222bed78e7f
child 1932 08fb1074b665
Org applications can now be deleted up to the deadline. As requested in Issue 341. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/views/models/org_app.py
--- a/app/soc/views/models/org_app.py	Thu Mar 19 00:12:59 2009 +0000
+++ b/app/soc/views/models/org_app.py	Thu Mar 19 08:04:07 2009 +0000
@@ -58,7 +58,9 @@
 
     rights = access.Checker(params)
     rights['create'] = ['checkIsDeveloper']
-    rights['delete'] = ['checkIsDeveloper']
+    rights['delete'] = [('checkCanEditGroupApp',
+                       [org_app_logic.logic]),
+                       ('checkIsActivePeriod', ['org_signup', 'scope_path'])]
     rights['edit'] = [('checkCanEditGroupApp',
                        [org_app_logic.logic]),
                        ('checkIsActivePeriod', ['org_signup', 'scope_path'])]