From 10e1bc0af986afce4db4298a5458ed2aaa85ca0c Mon Sep 17 00:00:00 2001 From: "apan_youxiang@163.com" Date: Tue, 9 Aug 2022 15:44:03 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E8=A7=92=E8=89=B2id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/user/views.py | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/user/views.py b/apps/user/views.py index f7279e8..bea6b8d 100644 --- a/apps/user/views.py +++ b/apps/user/views.py @@ -101,7 +101,6 @@ def get_user_info(): data = Utils.to_dict(g.current_user) try: data.pop("password") - data.pop("role_id") except Exception: pass return jsonify(Utils.true_return(data=data))