def get_serializer_class(self):
        if self.get_access_permissions() is not None:
            serializer_class = self.get_access_permissions().get_serializer_class(self.request.user)
        else:
            serializer_class = super().get_serializer_class()
        return serializer_class
Overridden method to return the serializer class given by the
dataset/ETHPy150Open OpenSlides/OpenSlides/openslides/utils/rest_api.py/PermissionMixin.get_serializer_class