fix: 修改工单close权限

pull/9450/head
Bai 2 years ago committed by Jiangjie.Bai
parent c7ce535630
commit 0deb093e7a

@ -86,7 +86,7 @@ class TicketViewSet(CommonApiMixin, viewsets.ModelViewSet):
instance.reject(processor=request.user) instance.reject(processor=request.user)
return Response('ok') return Response('ok')
@action(detail=True, methods=[PUT], permission_classes=[IsAssignee, ]) @action(detail=True, methods=[PUT], permission_classes=[IsAssignee | IsApplicant, ])
def close(self, request, *args, **kwargs): def close(self, request, *args, **kwargs):
instance = self.get_object() instance = self.get_object()
instance.close() instance.close()

Loading…
Cancel
Save