mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-01 15:11:16 +00:00
fix: 修复资产/应用账号相关权限
This commit is contained in:
parent
16f9329869
commit
a51edf359b
@ -126,7 +126,7 @@ export default {
|
||||
{
|
||||
name: 'Test',
|
||||
title: this.$t('common.Test'),
|
||||
can: this.$hasPerm('assets.test_aauthbook'),
|
||||
can: this.$hasPerm('assets.test_authbook'),
|
||||
callback: ({ row }) => {
|
||||
this.$axios.post(
|
||||
`/api/v1/assets/accounts/${row.id}/verify/`,
|
||||
@ -159,7 +159,7 @@ export default {
|
||||
hasLeftActions: this.hasLeftActions,
|
||||
hasMoreActions: false,
|
||||
hasImport: false,
|
||||
hasExport: true,
|
||||
hasExport: this.$hasPerm('assets.view_assetaccountsecret'),
|
||||
exportOptions: {
|
||||
url: this.exportUrl,
|
||||
mfaVerifyRequired: true
|
||||
|
@ -130,7 +130,7 @@ export default {
|
||||
hasLeftActions: this.hasLeftActions,
|
||||
hasMoreActions: false,
|
||||
hasImport: false,
|
||||
hasExport: true,
|
||||
hasExport: this.$hasPerm('applications.view_applicationaccountsecret'),
|
||||
exportOptions: {
|
||||
url: this.exportUrl,
|
||||
mfaVerifyRequired: true
|
||||
|
@ -106,7 +106,10 @@ export default {
|
||||
'xpack.add_syncinstancetask': [
|
||||
'assets.view_asset', 'assets.view_node', 'assets.view_systemuser',
|
||||
'xpack.view_account'
|
||||
]
|
||||
],
|
||||
'xpack.view_syncinstancetask': ['xpack.view_account'],
|
||||
'xpack.view_syncinstancedetail': ['xpack.view_syncinstancetask'],
|
||||
'xpack.view_syncinstancetaskexecution': ['xpack.view_syncinstancetask']
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user