diff --git a/hb_server/apps/hrm/views.py b/hb_server/apps/hrm/views.py index fb49034..6b83098 100644 --- a/hb_server/apps/hrm/views.py +++ b/hb_server/apps/hrm/views.py @@ -18,6 +18,7 @@ from rest_framework_simplejwt.tokens import RefreshToken from rest_framework import exceptions from apps.system.models import User from apps.system.serializers import UserSimpleSerializer +from rest_framework.permissions import AllowAny logger = logging.getLogger('log') @@ -61,6 +62,7 @@ class ClockRecordViewSet(CreateModelMixin, ListModelMixin, GenericViewSet): """ perms_map = {'get':'*', 'post':'*'} authentication_classes = [] + permission_classes = [AllowAny] queryset = ClockRecord.objects.select_related('create_by').all() serializer_class = ClockRecordListSerializer filterset_class = ClockRecordFilterSet