loopback-component-access-groups icon indicating copy to clipboard operation
loopback-component-access-groups copied to clipboard

this.getCurrentUser returns wrong user

Open benjaminhaven opened this issue 8 years ago • 1 comments

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 avatar Jun 02 '16 00:06 benjaminhaven

@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.

mrfelton avatar Jun 06 '16 12:06 mrfelton