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