mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-23 12:07:38 +00:00
fix: 修复平台详情-自动化提示没有权限问题
This commit is contained in:
@@ -28,6 +28,6 @@ const getters = {
|
||||
currentUserIsSuperAdmin: state => state.users.isSuperAdmin,
|
||||
currentUserIsAdmin: state => state.users.isAdmin,
|
||||
hasValidLicense: state => state.settings.hasValidLicense,
|
||||
isSystemAdmin: state => state.users.profile.system_roles.includes('00000000-0000-0000-0000-000000000001')
|
||||
isSystemAdmin: state => state.users.profile.system_roles.some(i => (i?.id === '00000000-0000-0000-0000-000000000001'))
|
||||
}
|
||||
export default getters
|
||||
|
Reference in New Issue
Block a user