TreeGateway / tree-gateway

This is a full featured and free API Gateway
http://treegateway.com
MIT License
189 stars 42 forks source link

fixing groupNotAllowFilter #164

Open md-tfabi opened 5 years ago

md-tfabi commented 5 years ago

There is a bug with response interceptor group property. If you don't specify group, it all works, response interceptor used everywhere. If you specify a single group, it still works, response interceptor used for that single group. If you specify multiple groups, it doesn't work response interceptor never called.

The bug lies at the buildGroupNotAllowTest function, it has bad logic for this purpose. Noticed that that is only used for response interceptors, so fixed with negating the actual buildGroupAllowTest function and removed the redundant code.