fix: 修复作业执行没有日志权限的问题

This commit is contained in:
Aaron3S
2023-03-01 18:27:29 +08:00
committed by Jiangjie.Bai
parent 820971e2be
commit 6bc2f73f49
3 changed files with 6 additions and 5 deletions

View File

@@ -62,10 +62,10 @@ class PlaybookFileBrowserAPIView(APIView):
rbac_perms = ()
permission_classes = (RBACPermission,)
rbac_perms = {
'GET': 'ops.change_playbooks',
'POST': 'ops.change_playbooks',
'DELETE': 'ops.change_playbooks',
'PATCH': 'ops.change_playbooks',
'GET': 'ops.change_playbook',
'POST': 'ops.change_playbook',
'DELETE': 'ops.change_playbook',
'PATCH': 'ops.change_playbook',
}
protected_files = ['root', 'main.yml']