I am still not getting how this work?
app.put('/blogs/:id', acl.middleware(), function(req, res, next){…} <---- this is giving me always false....
and if I have allowed in ACL like this way?
acl.allow('admin', ['blogs'], '*')
acl.isAllowed(req.session.userId, '/blogs/12345', 'put') . <--- this is giving me always false.
Please let me know if I am misunderstand.
I am still not getting how this work?
app.put('/blogs/:id', acl.middleware(), function(req, res, next){…} <---- this is giving me always false....
and if I have allowed in ACL like this way?
acl.allow('admin', ['blogs'], '*')
acl.isAllowed(req.session.userId, '/blogs/12345', 'put') . <--- this is giving me always false.
Please let me know if I am misunderstand.