From 420bfd2bf82662128f9c6431b75540498bf1bff1 Mon Sep 17 00:00:00 2001 From: panxinying Date: Tue, 27 Oct 2026 15:36:39 +0800 Subject: [PATCH] fix: permission error in the system menu for regular users --- ui/src/permission/modules/system/other.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ui/src/permission/modules/system/other.ts b/ui/src/permission/modules/system/other.ts index 14fcf62d0f2..45f1753025e 100644 --- a/ui/src/permission/modules/system/other.ts +++ b/ui/src/permission/modules/system/other.ts @@ -8,11 +8,11 @@ export default { /** * 系统「其他/关于」关于权限 */ - about: () => hasPermission([RoleConstants.ADMIN,RoleConstants.WORKSPACE_MANAGE,P.ABOUT_READ],Compare.OR), + about: () => hasPermission([RoleConstants.ADMIN,RoleConstants.USER,RoleConstants.WORKSPACE_MANAGE,P.ABOUT_READ],Compare.OR), /** * 系统「其他/关于」切换语言权限 */ - SWITCH_LANGUAGE: () => hasPermission([RoleConstants.ADMIN,RoleConstants.WORKSPACE_MANAGE,P.SWITCH_LANGUAGE],Compare.OR), + SWITCH_LANGUAGE: () => hasPermission([RoleConstants.ADMIN,RoleConstants.USER,RoleConstants.WORKSPACE_MANAGE,P.SWITCH_LANGUAGE],Compare.OR), /** * 系统「其他/关于」更新许可证权限 */ @@ -20,13 +20,13 @@ export default { /** * 系统「其他/关于」修改密码权限 */ - changePassword: () => hasPermission([RoleConstants.ADMIN,RoleConstants.WORKSPACE_MANAGE,P.CHANGE_PASSWORD],Compare.OR), + changePassword: () => hasPermission([RoleConstants.ADMIN,RoleConstants.USER,RoleConstants.WORKSPACE_MANAGE,P.CHANGE_PASSWORD],Compare.OR), /** * 系统「其他/关于」系统APIKey权限 */ - systemApiKey: () => hasPermission([RoleConstants.ADMIN,RoleConstants.WORKSPACE_MANAGE,P.SYSTEM_API_KEY_EDIT],Compare.OR) && (hasEdition(Edition.PE)||hasEdition(Edition.EE)), + systemApiKey: () => hasPermission([RoleConstants.ADMIN,RoleConstants.USER,RoleConstants.WORKSPACE_MANAGE,P.SYSTEM_API_KEY_EDIT],Compare.OR) && (hasEdition(Edition.PE)||hasEdition(Edition.EE)), /** * 系统「其他/关于」门户权限 */ - portal: () => hasPermission([RoleConstants.ADMIN,RoleConstants.WORKSPACE_MANAGE,P.PORTAL],Compare.OR), + portal: () => hasPermission([RoleConstants.ADMIN,RoleConstants.USER,RoleConstants.WORKSPACE_MANAGE,P.PORTAL],Compare.OR), }