From 163e5eb2dbc5708188ccdb9782fa8fe64a083be7 Mon Sep 17 00:00:00 2001 From: 1638245306 <1638245306@qq.com> Date: Thu, 23 Oct 2025 22:16:03 +0800 Subject: [PATCH] =?UTF-8?q?fix(role):=20=E6=9B=B4=E6=96=B0=E8=A7=92?= =?UTF-8?q?=E8=89=B2=E6=8E=88=E6=9D=83=E7=94=A8=E6=88=B7=E6=9D=83=E9=99=90?= =?UTF-8?q?=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将授权用户按钮的权限检查从 role:AuthorizedAdd 更改为 role:SetUserRole -保持授权用户搜索权限检查不变- 确保只有具有适当权限的用户才能访问角色分配功能 --- web/src/views/system/role/crud.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/views/system/role/crud.tsx b/web/src/views/system/role/crud.tsx index f725188..e07575f 100644 --- a/web/src/views/system/role/crud.tsx +++ b/web/src/views/system/role/crud.tsx @@ -66,7 +66,7 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp assignment: { type: 'primary', text: '授权用户', - show: auth('role:AuthorizedAdd') || auth('role:AuthorizedSearch'), + show: auth('role:SetUserRole') || auth('role:AuthorizedSearch'), click: (ctx: any) => { const { row } = ctx; context!.RoleUserDrawer.handleDrawerOpen(row);