Also pass the prefix in the document cleaning method
The prefix is needed to determine how far to walk up the scope.
Patch by: Sverre Rabbelier
--- a/app/soc/logic/cleaning.py Sat Feb 21 17:58:45 2009 +0000
+++ b/app/soc/logic/cleaning.py Sat Feb 21 20:13:46 2009 +0000
@@ -452,6 +452,11 @@
roles = checker.getMembership(access_level)
- if not rights.hasMembership(roles, {'scope_path': scope_path}):
+ django_args = {
+ 'scope_path': scope_path,
+ 'prefix': prefix
+ }
+
+ if not rights.hasMembership(roles, django_args):
self._errors[field] = ErrorList([DEF_NO_RIGHTS_FOR_ACL_MSG])
del self.cleaned_data[field]