send session to task

This commit is contained in:
Jens Langhammer 2019-04-29 23:18:51 +02:00
parent 5daa8d5fe3
commit b46958d1f9

View file

@ -74,6 +74,7 @@ class PolicyEngine:
cached_policies = []
kwargs = {
'__password__': getattr(self.__user, '__password__', None),
'session': dict(getattr(self.__request, 'session', {}).items()),
}
if self.__request:
kwargs['remote_ip'], _ = get_client_ip(self.__request)