@eiabea @marklawlor @rimiti
|
if (!isUndefined(actionsTmp)) { |
I think this condition wrong when anyone uses the middleware without sending the permissions parameter.
|
const resource = numPathComponents === 0 ? url : url.split('/').slice(0, numPathComponents + 1).join('/'); |
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' }));
@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' }));