Fix another email ical bug

This commit is contained in:
Tanner Collin 2022-05-13 04:06:20 +00:00
parent f9d94a4a05
commit 152107a9bb

View File

@ -334,7 +334,7 @@ class SessionViewSet(Base, List, Retrieve, Create, Update):
return response return response
@action(detail=True, methods=['post'], permission_classes=[IsAuthenticated]) @action(detail=True, methods=['post'], permission_classes=[AllowMetadata | IsAuthenticated])
def email_ical(self, request, pk=None): def email_ical(self, request, pk=None):
session = get_object_or_404(models.Session, id=pk) session = get_object_or_404(models.Session, id=pk)
user = self.request.user user = self.request.user