-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
$owner is defined by the method
Role.isOwner = function isOwner(modelClass, modelId, userId, callback)
It will define if the current user is an "owner" of the model instance through key owner or userId or belongsTo relations
The problem is what if a model has two(or more) owners(through relation)?
The codes here says the method only checks the first belongsTo relation.
But what if the user is an owner through another belongsTo?