mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-01 23:18:17 +00:00
fix: 修改云任务执行权限控制
This commit is contained in:
parent
1d594fc594
commit
a93ecac15c
@ -44,7 +44,7 @@ export default {
|
||||
title: vm.$t('xpack.Execute'),
|
||||
name: 'execute',
|
||||
type: 'info',
|
||||
can: () => vm.$hasPerm('xpack.change_syncinstancetask'),
|
||||
can: () => vm.$hasPerm('xpack.add_syncinstancetaskexecution'),
|
||||
callback: function(data) {
|
||||
this.$axios.get(`/api/v1/xpack/cloud/sync-instance-tasks/${data.row.id}/run/`).then(res => {
|
||||
openTaskPage(res['task'])
|
||||
|
Loading…
Reference in New Issue
Block a user