diff --git a/src/components/AccountListTable/index.vue b/src/components/AccountListTable/index.vue index 800afc0c5..aa9c72da2 100644 --- a/src/components/AccountListTable/index.vue +++ b/src/components/AccountListTable/index.vue @@ -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 diff --git a/src/components/AppAccountListTable/index.vue b/src/components/AppAccountListTable/index.vue index 5a90818cf..97ca2ec69 100644 --- a/src/components/AppAccountListTable/index.vue +++ b/src/components/AppAccountListTable/index.vue @@ -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 diff --git a/src/views/users/Role/RoleDetail/RoleInfo.vue b/src/views/users/Role/RoleDetail/RoleInfo.vue index b9f9ef1b0..218c4289e 100644 --- a/src/views/users/Role/RoleDetail/RoleInfo.vue +++ b/src/views/users/Role/RoleDetail/RoleInfo.vue @@ -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'] } } },