OptimalBits / node_acl

Access control lists for node applications
2.62k stars 369 forks source link

Does it only work async ? #245

Closed asotog closed 7 years ago

asotog commented 7 years ago

Is there any way to make it work sync, using a single backend ? so i can say like:

const isAllowed = acl.isAllowed('johndoe', 'blogs', 'write');

so based on that wanted to not show for example a create new blog button.

wanted to use the package in the client side, to render or not ui sections based on roles

manast commented 7 years ago

You can do that using async code as well :) . I will close this issue as unrelated for acl.