Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic url #39

Open
ashish101184 opened this issue Mar 14, 2019 · 0 comments
Open

Dynamic url #39

ashish101184 opened this issue Mar 14, 2019 · 0 comments

Comments

@ashish101184
Copy link

ashish101184 commented Mar 14, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant