trailsjs / sails-permissions

Comprehensive user permissions and entitlements system for sails.js and Waterline. Supports user authentication with passport.js, role-based permissioning, object ownership, and row-level security.
MIT License
418 stars 113 forks source link

Broken limit, skip and populate find blueprint #228

Open armellarcier opened 8 years ago

armellarcier commented 8 years ago

Hi! I can't figure out why the lib is still using a bound function on res.ok to filter results instead of just modifying the where option sent to the Waterline in the first place.

The hook works great when you don't use pagination or the populate option.

Any work in that direction? Any hints on why it was dropped then?

EzequielMoroni commented 7 years ago

@Benew what did you do to solve this?