# HG changeset patch # User Daniel Hans # Date 1256853486 -3600 # Node ID 45e2c3e70761735cc5cda2ebfda15c3ae2226f6a # Parent c7c5212ba8403dcfd017c82e66463bbd8838fa69 If checkCanOrgAdminOrMentorEdit function does not find a task, the user is redirected to 404 page. diff -r c7c5212ba840 -r 45e2c3e70761 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