You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
also, this condition wrong when anyone uses the middleware without sending the number of Paths parameter.
Redis storage take the second parameter as a string with is the prefix but in the readme example take an object
// Using Redis store
const acl = new Aclify.Acl(new Aclify.RedisStore(RedisClient, {prefix: 'acl_'}));
so it must be:
const acl = new Aclify.Acl(new Aclify.RedisStore(RedisClient,'acl' }));
The text was updated successfully, but these errors were encountered:
@eiabea @marklawlor @rimiti
aclify/src/classes/acl.ts
Line 470 in ffed059
I think this condition wrong when anyone uses the middleware without sending the permissions parameter.
aclify/src/classes/acl.ts
Line 468 in ffed059
also, this condition wrong when anyone uses the middleware without sending the number of Paths parameter.
Redis storage take the second parameter as a string with is the prefix but in the readme example take an object
// Using Redis store
const acl = new Aclify.Acl(new Aclify.RedisStore(RedisClient, {prefix: 'acl_'}));
so it must be:
const acl = new Aclify.Acl(new Aclify.RedisStore(RedisClient,'acl' }));
The text was updated successfully, but these errors were encountered: