mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-24 12:40:36 +00:00
fix: 修复资产账号列表测试权限控制
This commit is contained in:
@@ -203,7 +203,11 @@ export default {
|
|||||||
{
|
{
|
||||||
name: 'Test',
|
name: 'Test',
|
||||||
title: this.$t('common.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 }) => {
|
callback: ({ row }) => {
|
||||||
this.$axios.post(
|
this.$axios.post(
|
||||||
`/api/v1/accounts/accounts/tasks/`,
|
`/api/v1/accounts/accounts/tasks/`,
|
||||||
|
Reference in New Issue
Block a user