mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-17 07:16:46 +00:00
fix: 修复资产授权详情权限显示不准确问题
This commit is contained in:
committed by
Jiangjie.Bai
parent
d917c0576c
commit
cfbd88011a
@@ -34,7 +34,8 @@ export default {
|
||||
title: this.$t('common.Active'),
|
||||
type: 'switcher',
|
||||
attrs: {
|
||||
model: this.object.is_active
|
||||
model: this.object.is_active,
|
||||
disabled: !this.$hasPerm('perms.change_assetpermission')
|
||||
},
|
||||
callbacks: {
|
||||
change: function(val) {
|
||||
|
||||
@@ -36,12 +36,12 @@ export default {
|
||||
{
|
||||
title: this.$t('perms.usersAndUserGroups'),
|
||||
name: 'AssetPermissionUser',
|
||||
hidden: () => !this.$hasPerm('perms.view_assetpermission')
|
||||
hidden: () => !this.$hasPerm('users.view_user')
|
||||
},
|
||||
{
|
||||
title: this.$t('perms.assetAndNode'),
|
||||
name: 'AssetPermissionAsset',
|
||||
hidden: () => !this.$hasPerm('perms.view_assetpermission')
|
||||
hidden: () => !this.$hasPerm('assets.view_asset')
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user