send session to task
This commit is contained in:
parent
5daa8d5fe3
commit
b46958d1f9
|
@ -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)
|
||||||
|
|
Reference in New Issue