能力上报权限

This commit is contained in:
caoqianming 2021-08-27 15:30:12 +08:00
parent 20e195a4f0
commit a588efb21d
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class AbilityContentViewSet(CreateUpdateCustomMixin, ModelViewSet):
serializer.save(update_by = self.request.user)
class AbilityRecordViewSet(PageOrNot, CreateUpdateCustomMixin, ModelViewSet):
perms_map = {'get': '*', 'post': 'record_create',
perms_map = {'get': '*', 'post': 'record_update',
'put': 'record_update', 'delete': 'record_delete'}
queryset = Record.objects.filter(content__cate=2)
serializer_class = RecordSerializer