mirror of
https://github.com/jumpserver/lina.git
synced 2025-07-14 23:44:16 +00:00
fix: 修复 rbac 相关权限位问题
This commit is contained in:
parent
d2226c0b00
commit
2e6bb9ab66
@ -22,11 +22,13 @@ export default {
|
||||
{
|
||||
title: this.$t('acl.CommandFilterACL'),
|
||||
name: 'CommandFilterACL',
|
||||
hidden: !this.$hasPerm('acls.view_commandfilteracl'),
|
||||
component: () => import('@/views/acl/CommandAcl/CommandFilterAcl/CommandFilterAclList.vue')
|
||||
},
|
||||
{
|
||||
title: this.$t('acl.CommandGroup'),
|
||||
name: 'CommandGroup',
|
||||
hidden: !this.$hasPerm('acls.view_commandgroup'),
|
||||
component: () => import('@/views/acl/CommandAcl/CommandGroup/CommandGroupList.vue')
|
||||
}
|
||||
]
|
||||
|
@ -73,7 +73,7 @@ export default {
|
||||
name: this.$t('setting.Create'),
|
||||
title: this.$t('setting.Create'),
|
||||
type: 'primary',
|
||||
can: true,
|
||||
can: this.$hasPerm('authentication.add_temptoken'),
|
||||
callback: function() {
|
||||
this.$axios.post(
|
||||
`/api/v1/authentication/temp-tokens/`
|
||||
|
@ -96,9 +96,10 @@ export default {
|
||||
],
|
||||
'acls.loginacl': ['users.view_user'],
|
||||
'acls.loginassetacl': ['users.view_user'],
|
||||
'acls.commandfilteracl': ['users.view_user'],
|
||||
'assets.view_asset': ['assets.view_node', 'assets.view_platform'],
|
||||
'assets.view_node': ['assets.view_asset', 'assets.view_platform'],
|
||||
'assets.commandfilterrule': ['assets.view_commandfilter'],
|
||||
'acls.commandgroup': ['acls.view_commandfilteracl'],
|
||||
'assets.gateway': ['assets.view_domain'],
|
||||
'assets.add_gateway': ['assets.view_domain', 'assets.view_platform', 'assets.view_node'],
|
||||
'assets.change_gateway': ['assets.view_domain', 'assets.view_platform', 'assets.view_node'],
|
||||
|
Loading…
Reference in New Issue
Block a user