fix: 修复云同步permissions权限问题

This commit is contained in:
“huailei000” 2022-03-10 17:39:28 +08:00
parent 86d3aaa443
commit a6b946ba51
3 changed files with 11 additions and 1 deletions

View File

@ -15,6 +15,10 @@ export default {
return {
tableConfig: {
url: '/api/v1/xpack/cloud/accounts/',
permissions: {
app: 'xpack',
resource: 'account'
},
columns: [
'name', 'provider', 'validity', 'date_created', 'comment', 'actions'
],

View File

@ -16,6 +16,10 @@ export default {
return {
tableConfig: {
url: '/api/v1/xpack/cloud/sync-instance-tasks/',
permissions: {
app: 'xpack',
resource: 'syncinstancetask'
},
columns: [
'name', 'account_display', 'history_count', 'instance_count', 'periodic_display',
'date_last_sync', 'comment', 'actions'

View File

@ -29,7 +29,9 @@ export default {
},
{
title: this.$t('xpack.Cloud.AccountList'),
name: 'AccountList'
name: 'AccountList',
hidden: () => !this.$hasPerm('xpack.view_account')
}
]
}