Closed origin1tech closed 10 years ago
Seems as though the following in the "belongsTo" method may need to be the culprit.
if (inst.id=== this[fk]) { cb(null, inst); } else { cb(new Error('Permission denied')); }
The "hasMany" method converts to string before checking equality. if the above is changed to:
inst.id.toString() === this[fk].toString()
Seems as though the following in the "belongsTo" method may need to be the culprit.
The "hasMany" method converts to string before checking equality. if the above is changed to: