fullcube / loopback-component-access-groups

Access controls for Loopback.
59 stars 21 forks source link

Middleware can't allow multiple User models #36

Closed Donluigimx closed 1 year ago

Donluigimx commented 6 years ago

I'm working in a project where we have two User models. When I logged in with a user that isn't specified as userModel in component-config.json, the /lib/middleware/user-context.js throws an Error in line 33 that, I think, shouldn't being throw.