You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As PandasView inherits from APIListView I would expect that the attribute permission_classes can be used
to set permission on this view. However, the following view can be accessed when logged out
The only difference is the serializer class and the View they inherit from so I would say this is something with PandasView, but I cannot guess why. Am I missing something here?
Adding these mixin's restricts the view to logged in users again.
class DownloadFileViewAPI(LoginRequiredMixin, PandasView):
So this is my workaround for now
The text was updated successfully, but these errors were encountered:
I wasn't able to reproduce this issue - can you check that your view has permission_classes and not permission_class? PandasView directly inherits from ListAPIView so it should mostly use the same logic.
As PandasView inherits from APIListView I would expect that the attribute permission_classes can be used
to set permission on this view. However, the following view can be accessed when logged out
While the following view can only be accessed when logged in
The only difference is the serializer class and the View they inherit from so I would say this is something with PandasView, but I cannot guess why. Am I missing something here?
Adding these mixin's restricts the view to logged in users again.
So this is my workaround for now
The text was updated successfully, but these errors were encountered: