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
sails.hooks.blueprints.middleware.find(req, {
ok: resolve,
serverError: reject,
// this isn't perfect, since it returns a 500 error instead of a 404 error
// but it is better than crashing the app when a record doesn't exist
notFound: reject
});
req object does not contains any criteria, so find fetch all records from related model table. Is it permissible behaviour?
The text was updated successfully, but these errors were encountered:
KirillSuhodolov
changed the title
findTargetObjects method fetch all data from database!
findTargetObjects method fetch all data from table
Jan 24, 2016
I found some strange behaviour with Permission Service
https://github.com/tjwebb/sails-permissions/blob/master/api%2Fservices%2FPermissionService.js#L56
req object does not contains any criteria, so find fetch all records from related model table. Is it permissible behaviour?
The text was updated successfully, but these errors were encountered: