Open sielay opened 8 years ago
I have two rules
/api/cms/.*: - get - delete - post - put /api/.* - get
Expected behaviour
GET /api/whatever TRUE
POST /api/whatever FALSE
GET /api/cms/whatever TRUE
POST /api/cms/whatever TRUE
Actual behaviour
POST /api/cms/whatever FALSE
Why?
In this line
https://github.com/OptimalBits/node_acl/blob/master/lib/acl.js#L883
You use union instead of unions
union
unions
What do you think about it?
Anyone?
I have two rules
Expected behaviour
GET /api/whatever TRUE
POST /api/whatever FALSE
GET /api/cms/whatever TRUE
POST /api/cms/whatever TRUE
Actual behaviour
GET /api/whatever TRUE
POST /api/whatever FALSE
GET /api/cms/whatever TRUE
POST /api/cms/whatever FALSE
<- this seems working wrongWhy?
In this line
https://github.com/OptimalBits/node_acl/blob/master/lib/acl.js#L883
You use
union
instead ofunions
What do you think about it?