[x] ProfielMiddleware never authenticates a request.user
[x] Mededeling.get_viewable_by requires profiel.user.is_authenticated() in order to work (so a profiel has a user?? ithought it was reversed) It gets passed the request.user by ViewSet.get_queryset
[x] Current DB doesn't contain x999, it is mentioned in the code (ProfielMiddleware)
ProfielMiddleware
never authenticates a request.userMededeling.get_viewable_by
requiresprofiel.user.is_authenticated()
in order to work (so a profiel has a user?? ithought it was reversed) It gets passed therequest.user
byViewSet.get_queryset
x999
, it is mentioned in the code (ProfielMiddleware
)