From 58c9bc38bcc72cd47cfa7747337e3e464b1d4b7e Mon Sep 17 00:00:00 2001 From: Pawel Solyga Date: Sun, 1 Mar 2009 15:13:28 +0000 Subject: [PATCH] Fix bug in checkDocumentPick of soc.views.helper.access module, which cause KeyError exceptions in document picker. Patch by: Pawel Solyga Reviewed by: to-be-reviewed --- app/soc/views/helper/access.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/soc/views/helper/access.py b/app/soc/views/helper/access.py index a027f99c..069df042 100644 --- a/app/soc/views/helper/access.py +++ b/app/soc/views/helper/access.py @@ -743,7 +743,7 @@ class Checker(object): def checkHasDocumentAccess(self, django_args, logic, target_scope): """Checks that the user has access to the specified document scope. """ - + prefix = django_args['prefix'] if self.SCOPE_DEPTH.get(prefix): scope_logic, depths = self.SCOPE_DEPTH[prefix] @@ -1399,6 +1399,7 @@ class Checker(object): raise out_of_band.AccessViolation(message_fmt=DEF_PREFIX_NOT_IN_ARGS_MSG) prefix = get_args['prefix'] + django_args['prefix'] = prefix checker = rights_logic.Checker(prefix) memberships = checker.getMemberships() -- 2.11.4.GIT