From 8bc5d6e0c2f612d3cf5cf1b68f4fc4b617a5d000 Mon Sep 17 00:00:00 2001 From: zhengxinonly Date: Fri, 17 Sep 2021 04:00:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E6=9D=83=E9=99=90?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=8F=E5=88=97=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- applications/api/rights/roles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/api/rights/roles.py b/applications/api/rights/roles.py index 9a62d56..c5b98ab 100644 --- a/applications/api/rights/roles.py +++ b/applications/api/rights/roles.py @@ -145,7 +145,7 @@ class RolePowerResource(Resource): # 获取权限列表的 id check_powers_list = [rp.id for rp in role.power] powers = RightsPower.query.all() # 获取所有的权限 - powers = marshal(powers, RightsRole.fields()) + powers = marshal(powers, RightsPower.fields()) for i in powers: if int(i.get("powerId")) in check_powers_list: i["checkArr"] = "1"