考试记录权限

This commit is contained in:
caoqianming 2022-11-14 15:56:27 +08:00
parent f16b7e7b45
commit e22aed286b
1 changed files with 1 additions and 1 deletions

View File

@ -332,7 +332,7 @@ class ExamRecordViewSet(ListModelMixin, DestroyModelMixin, RetrieveModelMixin, G
"""
考试记录列表和详情
"""
perms_map = {'get': 'examrecord', 'post': '*', 'delete':'examrecord'}
perms_map = {'get': '*', 'post': '*', 'delete':'examrecord'}
queryset = ExamRecord.objects.select_related('create_by')
serializer_class = ExamRecordListSerializer
ordering_fields = ['create_time', 'score', 'took', 'update_time']