Do not modify django_args directly
This broke document listing since it used kwargs as filter.
Patch by: Sverre Rabbelier
--- a/app/soc/views/helper/access.py Sat Feb 28 12:10:19 2009 +0000
+++ b/app/soc/views/helper/access.py Sat Feb 28 12:10:49 2009 +0000
@@ -687,6 +687,7 @@
"""Checks that the user has the specified active role.
"""
+ django_args = django_args.copy()
django_args['user'] = self.user
self._checkIsActive(django_args, logic, ['user'])
@@ -698,6 +699,7 @@
"""
fields = [field_name, 'user']
+ django_args = django_args.copy()
django_args['user'] = self.user
self._checkIsActive(django_args, logic, fields)