Skip to content
Snippets Groups Projects
Commit 6b3fbab0 authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

Don't allow public access to superevents-events list

No point in allowing access since unauthenticated users don't
see graceids anywhere else and they can't access the events
anyway.
parent b807dbc3
No related branches found
No related tags found
No related merge requests found
......@@ -114,7 +114,8 @@ class SupereventEventViewSet(ValidateDestroyMixin,
"""View for events attached to a superevent"""
serializer_class = SupereventEventSerializer
pagination_class = BasePaginationFactory(results_name='events')
permission_classes = (EventParentSupereventPermissions,)
permission_classes = (EventParentSupereventPermissions,
permissions.IsAuthenticated,)
lookup_url_kwarg = 'graceid'
list_view_order_by = ('pk',)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment