You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello I've noticed when building out some functionality that if I update the user who I am currently logged in as's object then it either hangs if it is in a hook or logs me out if I am updating the user record itself.
I am working on 3.0.0-beta.32.
Steps to recreate log out:
Login as a user
Update your own record
You will be logged out
Steps to recreate hanging on a hook:
Login as a user
Create a hook on a separate collection (I know infinite calls can be a risk if it's the same collection)
Update a user that you are not signed in as - it will go through fine
Update your own user - it will hang indefinitely
The text was updated successfully, but these errors were encountered:
mcornielje090404
changed the title
POTENTIAL BUG - Updating your own user document in the admin panel either logs your out or hangs if in a hook
POTENTIAL BUG - Updating your own user document in the admin panel either logs you out or hangs if in a hook
May 16, 2024
@mcornielje090404 I've tested with this repo and could not reproduce. Can you test with the latest version 3.0.0-beta.34 and confirm you get the same behavior?
If you do, please provide a reproduction / screen recording / some more information to help us recreate.
denolfe
transferred this issue from payloadcms/payload-3.0-demo
May 22, 2024
Hello I've noticed when building out some functionality that if I update the user who I am currently logged in as's object then it either hangs if it is in a hook or logs me out if I am updating the user record itself.
I am working on 3.0.0-beta.32.
Steps to recreate log out:
Steps to recreate hanging on a hook:
The text was updated successfully, but these errors were encountered: