fix:修复权限数据序列化

This commit is contained in:
zhengxinonly
2021-09-17 04:00:11 +08:00
parent 3fa8ae0a8a
commit 8bc5d6e0c2
+1 -1
View File
@@ -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"