mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-23 12:07:38 +00:00
fix: 修复资产账号列表测试权限控制
This commit is contained in:
@@ -203,7 +203,11 @@ export default {
|
||||
{
|
||||
name: 'Test',
|
||||
title: this.$t('common.Test'),
|
||||
can: this.$hasPerm('accounts.change_account') && !this.$store.getters.currentOrgIsRoot,
|
||||
can: ({ row }) =>
|
||||
!this.$store.getters.currentOrgIsRoot &&
|
||||
this.$hasPerm('accounts.change_account') &&
|
||||
row.asset['auto_info'].ansible_enabled &&
|
||||
row.asset['auto_info'].ping_enabled,
|
||||
callback: ({ row }) => {
|
||||
this.$axios.post(
|
||||
`/api/v1/accounts/accounts/tasks/`,
|
||||
|
Reference in New Issue
Block a user