Commit 8ac8f6a8 authored by Luuk Scholten's avatar Luuk Scholten
Browse files

Make calls to calendarjs api accesible to unauthorized users

parent d87d920f
......@@ -5,7 +5,11 @@ from rest_framework import viewsets, filters
from rest_framework.decorators import list_route, detail_route
from rest_framework.exceptions import ParseError
from rest_framework.generics import get_object_or_404
from rest_framework.permissions import IsAuthenticated, IsAdminUser
from rest_framework.permissions import (
from rest_framework.response import Response
from events.api.permissions import UnpublishedEventPermissions
......@@ -81,7 +85,7 @@ class EventViewset(viewsets.ReadOnlyModelViewSet):
return Response(
def calendarjs(self, request):
end, start = _extract_date_range(request)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment