express-admin
express-admin copied to clipboard
How to check user access in custom view?
trafficstars
I have a get request like "site.com/admin/fs/download?filename=blahblah.pdf", where fs is my custom view. How can I check in my custom view if user have access to express admin? Because now everyone can execute this query without login.
Ok, i checked out the auth.js and
if (!req.session.user) next();
works for me