If checkCanOrgAdminOrMentorEdit function does not find a task, the user is redirected to 404 page.
authorDaniel Hans <Daniel.M.Hans@gmail.com>
Thu, 29 Oct 2009 22:58:06 +0100
changeset 3066 45e2c3e70761
parent 3065 c7c5212ba840
child 3067 371e1979ee6a
If checkCanOrgAdminOrMentorEdit function does not find a task, the user is redirected to 404 page.
app/soc/modules/ghop/views/helper/access.py
--- a/app/soc/modules/ghop/views/helper/access.py	Tue Oct 27 20:04:51 2009 +0000
+++ b/app/soc/modules/ghop/views/helper/access.py	Thu Oct 29 22:58:06 2009 +0100
@@ -128,7 +128,7 @@
           'link_id': django_args['link_id'],
           'scope_path': django_args['scope_path'],
           }
-      task_entity = ghop_task_logic.logic.getFromKeyFields(task_filter)
+      task_entity = ghop_task_logic.logic.getFromKeyFieldsOr404(task_filter)
 
       if task_entity.status not in ['Unapproved', 'Unpublished', 'Open']:
         # task is claimed at least once