Node-acl method "isAllowed" always returns false unexpectedly Node-acl method "isAllowed" always returns false unexpectedly mongoose mongoose

Node-acl method "isAllowed" always returns false unexpectedly


You have to call the method in your config file:

require('rout/of/your/policy/file').invokeRolesPolicies();

If you don't do it, always returns false unexpectedly