From 997850fa614e68e2b0612d1b274d93137f5b432a Mon Sep 17 00:00:00 2001 From: "Jiangjie.Bai" Date: Fri, 18 Feb 2022 20:01:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E7=94=A8=E6=88=B7temp=5Fauth=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E6=97=B6=E6=9E=84=E5=BB=BA=E7=9A=84key=E5=92=8C?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=97=B6=E4=B8=8D=E4=B8=80=E8=87=B4=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/api/system_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/assets/api/system_user.py b/apps/assets/api/system_user.py index 673a9f34d..d247ef176 100644 --- a/apps/assets/api/system_user.py +++ b/apps/assets/api/system_user.py @@ -114,7 +114,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)