fix: 修复登录系统用户temp_auth保存时构建的key和获取时不一致的问题

This commit is contained in:
Jiangjie.Bai
2022-02-18 20:01:06 +08:00
committed by 老广
parent 63de4e1806
commit 3deced4ade

View File

@@ -117,7 +117,7 @@ class SystemUserTempAuthInfoApi(generics.CreateAPIView):
with tmp_to_root_org():
instance = get_object_or_404(SystemUser, pk=pk)
instance.set_temp_auth(instance_id, self.request.user, data)
instance.set_temp_auth(instance_id, self.request.user.id, data)
return Response(serializer.data, status=201)