perf: The global organization strategy is not operational.

This commit is contained in:
jiangweidong
2025-04-15 12:43:04 +08:00
committed by Bryan
parent 26f5516398
commit bcd96c08cf

View File

@@ -52,10 +52,11 @@ export default {
updateRoute: 'CloudStrategyUpdate',
hasClone: false,
canDelete: ({ row }) => {
return row.name !== 'default'
return this.$hasPerm('xpack.delete_strategy') && row.name !== 'default'
},
canUpdate: ({ row }) => {
return row.name !== 'default'
return this.$hasPerm('xpack.change_strategy') && row.name !== 'default' &&
!this.$store.getters.currentOrgIsRoot
}
}
}