$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?
$owneris defined by the methodRole.isOwner = function isOwner(modelClass, modelId, userId, callback)It will define if the current user is an "owner" of the model instance through key
owneroruserIdorbelongsTorelationsThe problem is what if a model has two(or more) owners(through relation)?
The codes here says the method only checks the first
belongsTorelation.But what if the user is an owner through another
belongsTo?