I have a little doubt about how ACL works on loopback.
I'm following the sample https://github.com/strongloop/loopback-example-access-control
The REST Api allow the create call to pass the ownerid as a parameter, but doesn't make any validation.
So an authenticated user can for example create a project and set the ownerid to any value. I believe that property should only be allowed to be set by an admin Role.
I know I can put some code to do the validation.. but I believe that value must be set automatically based on the user currently logged in. I'm wrong or I'm missing something?
Thank you!