loopback-component-access-groups
loopback-component-access-groups copied to clipboard
this.getCurrentUser returns wrong user
When we have multiple users using system at the same time the this.getCurrentUser
call will often return the wrong value.
It seems that getCurrentContext has several issues listed in the loopback github issues and google groups. I'm curious if you've experienced this at all or have any suggestions on how to resolve it?
@benjaminhaven We have experienced issues with getCurrentContext
returning nothing, but never with it returning the wrong context. This is the relevant issue https://github.com/strongloop/loopback-datasource-juggler/issues/657 although we haven't hit it in a good while.
Also see https://github.com/strongloop/loopback/issues/878 https://github.com/strongloop/loopback/issues/1961
The supposed workaround is being worked on in https://github.com/strongloop/loopback/issues/1495. Once there is something workable there we will look to update this component based on that solution.