fix: 修改工单管理权限位

This commit is contained in:
Jiangjie.Bai
2022-03-16 14:43:20 +08:00
committed by 老广
parent 8a1cd7e2a9
commit 572c5b6925
6 changed files with 27 additions and 9 deletions

View File

@@ -18,6 +18,9 @@ class TicketSessionRelationViewSet(CreateModelMixin, JMSGenericViewSet):
# Todo: 放到上面的 ViewSet 中
class TicketSessionApi(views.APIView):
perm_model = TicketSession
rbac_perms = {
'*': ['tickets.view_ticket']
}
def get(self, request, *args, **kwargs):
with tmp_to_root_org():