mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-26 15:07:04 +00:00
perf: 修改消息订阅 (#1457)
* perf: 修改消息订阅 * perf: 修改一些依赖 Co-authored-by: ibuler <ibuler@qq.com>
This commit is contained in:
@@ -37,7 +37,6 @@ async function changeCurrentViewIfNeed({ to, from, next }) {
|
|||||||
const hasPerm = hasRouteViewPerm(to)
|
const hasPerm = hasRouteViewPerm(to)
|
||||||
Vue.$log.debug('Change has current view, has perm: ', hasPerm)
|
Vue.$log.debug('Change has current view, has perm: ', hasPerm)
|
||||||
if (hasPerm) {
|
if (hasPerm) {
|
||||||
Vue.$log.debug('Has current view perm')
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const view = getPropView()
|
const view = getPropView()
|
||||||
|
@@ -55,7 +55,7 @@ export default {
|
|||||||
meta: {
|
meta: {
|
||||||
title: i18n.t('setting.MessageSub'),
|
title: i18n.t('setting.MessageSub'),
|
||||||
icon: 'bell-o',
|
icon: 'bell-o',
|
||||||
permissions: ['notifications.change_systemmsgsubscription']
|
permissions: ['settings.change_systemmsgsubscription']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@@ -95,7 +95,16 @@ export default {
|
|||||||
'perms.view_applicationpermission': ['applications.view_application'],
|
'perms.view_applicationpermission': ['applications.view_application'],
|
||||||
'acls.loginacl': ['users.view_user'],
|
'acls.loginacl': ['users.view_user'],
|
||||||
'rbac.orgrolebinding': ['rbac.view_orgrole'],
|
'rbac.orgrolebinding': ['rbac.view_orgrole'],
|
||||||
'rbac.systemrolebinding': ['rbac.view_systemrole']
|
'rbac.systemrolebinding': ['rbac.view_systemrole'],
|
||||||
|
'settings.change_systemmsgsubscription': ['users.view_user'],
|
||||||
|
'perms.assetpermission': [
|
||||||
|
'assets.view_asset', 'assets.view_node', 'assets.view_systemuser',
|
||||||
|
'users.view_user', 'users.view_usergroup'
|
||||||
|
],
|
||||||
|
'perms.applicationpermission': [
|
||||||
|
'applications.view_application', 'assets.view_systemuser',
|
||||||
|
'users.view_user', 'users.view_usergroup'
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user