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

Temporarily removing superevent filtering for user

We currently aren't filtering superevents for the user in the
request for the web interface search, so we are removing the
(very minor) filtering in the API for the time being.  In the near
future, we will add the full permissions framework in.
parent 89ccb960
No related branches found
No related tags found
No related merge requests found
......@@ -66,8 +66,10 @@ class SupereventViewSet(viewsets.ModelViewSet):
def get_queryset(self):
"""Filter queryset for user"""
# TODO: do we need to filter this any further?
queryset = get_objects_for_user(self.request.user,
'superevents.view_superevent')
# TODO: Check that this might be causing slowness
#queryset = get_objects_for_user(self.request.user,
# 'superevents.view_superevent')
queryset = self.queryset
return queryset
def get_object(self):
......
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