From 9bfd3fc556a402d848daee3f0c6c9335fef81574 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 8 Sep 2026 14:05:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=9D=83=E9=99=90):=20=E4=BB=A3=E5=AE=A2?= =?UTF-8?q?=E5=85=85=E5=80=BC=E6=8E=88=E6=9D=83=E8=A1=A5owner=E8=B4=A2?= =?UTF-8?q?=E5=8A=A1=E8=A7=92=E8=89=B2=E2=80=94=E2=80=94=E8=B4=A6=E5=8A=A1?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E8=8F=9C=E5=8D=95=E4=BB=A3=E5=AE=A2=E5=85=85?= =?UTF-8?q?=E5=80=BC=E5=85=A5=E5=8F=A3=E5=9C=A8is=5Ffin=E5=9D=97(=E5=90=AB?= =?UTF-8?q?owner=E8=B4=A2=E5=8A=A1)=E4=BD=86PATHS=5FPROXY=E5=8E=86?= =?UTF-8?q?=E5=8F=B2=E4=BB=85=E6=8E=88reseller,=E8=87=B4owner=E8=B4=A2?= =?UTF-8?q?=E5=8A=A1=E7=9C=8B=E5=BE=97=E5=88=B0=E8=8F=9C=E5=8D=95=E5=8D=B4?= =?UTF-8?q?403(=E5=AE=9E=E6=B5=8B);=E6=9D=83=E9=99=90=E4=B8=8E=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E9=97=A8=E6=8E=A7=E5=AF=B9=E9=BD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/load_path.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/load_path.py b/scripts/load_path.py index fcd2a33..754f431 100644 --- a/scripts/load_path.py +++ b/scripts/load_path.py @@ -66,8 +66,14 @@ FIN_ROLES = [ "reseller.operator", ] -# 代客充值角色:分销商侧可代客户充值(需按用户名查询客户账户,属业务需要) +# 代客充值角色:分销商侧可代客户充值(需按用户名查询客户账户,属业务需要)。 +# 2026-09-08:owner 财务角色也需代客充值权(平台方运营给客户充值,归属校验里 owner 不受限), +# 且账务管理菜单「代客充值」入口在 is_fin 块(含 owner 财务)——权限须与菜单门控一致, +# 否则 owner 财务看得到菜单却 403(实测)。= FIN_ROLES(owner财务+reseller财务)+ reseller.sale。 PROXY_ROLES = [ + "owner.superuser", + "owner.admin", + "owner.account", "reseller.admin", "reseller.accountant", "reseller.operator",