send session to task

This commit is contained in:
Jens Langhammer 2019-04-29 23:18:51 +02:00
parent 5daa8d5fe3
commit b46958d1f9
1 changed files with 1 additions and 0 deletions

View File

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