删除权限

This commit is contained in:
曹前明 2022-06-02 16:28:41 +08:00
parent b9e66f4bd7
commit 9332e5fc34
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ def cal_count(qtask, org):
qorg.save()
class QActionViewSet(PageOrNot, ListModelMixin, DestroyModelMixin, RetrieveModelMixin,GenericViewSet):
perms_map = {'get': 'qtask_view', 'post': 'qaction_delete'}
perms_map = {'get': 'qtask_view', 'delete': 'qaction_delete'}
queryset = QAction.objects.select_related('file', 'atype', 'afield', 'qtask', 'belong_dept', 'create_by')
filterset_fields = ['qtask', 'belong_dept', 'atype', 'afield']
serializer_class = QActionListSerializer