If checkCanOrgAdminOrMentorEdit function does not find a task, the user is redirected to 404 page.
--- 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