perf: 修改消息订阅 (#1457)

* perf: 修改消息订阅

* perf: 修改一些依赖

Co-authored-by: ibuler <ibuler@qq.com>
This commit is contained in:
fit2bot
2022-03-14 11:17:45 +08:00
committed by GitHub
parent 74f997d8f9
commit bd028b5bb9
3 changed files with 11 additions and 3 deletions

View File

@@ -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()

View File

@@ -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']
} }
}, },
{ {

View File

@@ -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'
]
} }
} }
}, },