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), }