Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions ui/src/permission/modules/system/other.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,25 @@ 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),
/**
* 系统「其他/关于」更新许可证权限
*/
license: () => canSys(P.LICENSE_UPDATE),
/**
* 系统「其他/关于」修改密码权限
*/
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),
}
Loading