Open grochadc opened 6 years ago
@ForbesLindesay
What do you mean by "is skipped". The line if(req.user.id == req.params.user_id) return true;
should be executed when someone attempts to request /user/0
(providing that the request hasn't already been handled by an earlier route). You need to narrow this test case down a lot if you want me to help you find the issue. I can't run that code as is, because there's loads of code missing, and there's also lots of stuff to read that shouldn't be relevant.
I am not sure if this is a bug or maybe there is something wrong with my code...
The issue is that the
user.can('access dashboard')
strategy is being skipped (I checked using my debug tool. For some reason it's not even being considered.Is there something wrong with my code?