edited middleware to also proces documents so user obj is connected

It doesn't work. Moreover, the view is not an official admin url.