-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
context.get('currentUser'); is not accessible from User.observe hook #2004
Comments
Hi @barocsi thanks for your contribution! And any question or suggestion are welcomed! Could you fork this sandbox and replace it with your code to prove the problem? Thanks! |
This is a custom user model. I will check against the sandbox repo. |
any solutions ? |
Possibly related: #2397 |
i am able to reproduce it with the snippet above:
|
Issue moved to strongloop/loopback-context #23 via ZenHub |
I was trying to implement an access filter for my User method depending on the currently logged in user.
However, when I try to access, it is undefined:
It works with other presistedModels operation hooks.
The text was updated successfully, but these errors were encountered: