Hello everyone, I am new to Loopback framework. I need some help. I am working a project and required a custom user so i extended the default User model as user.
{
"name": "user",
"base": "User",
"idInjection": false,
"properties": {
.
.
.
}
but the ACL $owner does not work for this model.
I called a function as follows:
Role.isOwner(user,user_id,user_id,function(err,callback)) to check whether the user_id is owner. It should have return true but it returns err object with false.
I searched in the documentation, mailing, stackoverflow etc but could not get the answer. May be i am not searching correctly. Can anyone please help ?
Regards
Mohit Goyal