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
Bibsonomy view serving bibsonomy-tooltip (apis_bibsonomy.api_views.SaveBibsonomyEntry) is a django-rest-framework (DRF) APIView.
So it pulls the default permissions for DRF from settings.py. For example, in apis-devops, default permission is set to "DjangoObjectPermissions"
this is not compatible with the view and throws this error: sentry issue
Possible fixes:
add get_queryset method to apis_bibsonomy.api_views.SaveBibsonomyEntry
change default DRF permissions in affected projects
overwrite default permission class in view by defining the class attribute permission_classes = [IsAuthenticated]
The more robust approach would be to refactor the view to be compatible with DjangoObjectPermissions. Quickest fix is setting permission class on view.
The text was updated successfully, but these errors were encountered:
Issue description:
apis_bibsonomy.api_views.SaveBibsonomyEntry
) is a django-rest-framework (DRF) APIView.Possible fixes:
apis_bibsonomy.api_views.SaveBibsonomyEntry
permission_classes = [IsAuthenticated]
The more robust approach would be to refactor the view to be compatible with DjangoObjectPermissions. Quickest fix is setting permission class on view.
The text was updated successfully, but these errors were encountered: