1
0
mirror of https://github.com/jumpserver/lina.git synced 2025-05-12 10:08:52 +00:00

fix: 修改云任务执行权限控制

This commit is contained in:
Jiangjie.Bai 2022-04-18 15:52:51 +08:00 committed by Jiangjie.Bai
parent 8697ea629d
commit c5eaaab6f9

View File

@ -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'])