mirror of
https://github.com/jumpserver/lina.git
synced 2025-05-12 10:08:52 +00:00
fix: 修改云任务执行权限控制
This commit is contained in:
parent
8697ea629d
commit
c5eaaab6f9
@ -43,7 +43,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