1
0
mirror of https://github.com/jumpserver/jumpserver.git synced 2025-09-07 02:10:23 +00:00

fix: 修复批量命令权限位

This commit is contained in:
Jiangjie.Bai
2022-03-16 18:27:05 +08:00
committed by Jiangjie.Bai
parent 580d2cd80b
commit 04b35ba520

@@ -132,7 +132,7 @@ class CommandExecutionHostRelationViewSet(OrgRelationMixin, OrgBulkModelViewSet)
search_fields = ('asset__hostname', ) search_fields = ('asset__hostname', )
http_method_names = ['options', 'get'] http_method_names = ['options', 'get']
rbac_perms = { rbac_perms = {
'GET': 'audits.view_commandexecution' 'GET': 'ops.view_commandexecution'
} }
def get_queryset(self): def get_queryset(self):