Skip to content
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

POTENTIAL BUG - Updating your own user document in the admin panel either logs you out or hangs if in a hook #6459

Closed
mcornielje090404 opened this issue May 16, 2024 · 3 comments
Assignees

Comments

@mcornielje090404
Copy link

mcornielje090404 commented May 16, 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:

  • 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
@mcornielje090404 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
@JessChowdhury JessChowdhury self-assigned this May 20, 2024
@JessChowdhury
Copy link
Member

JessChowdhury commented May 20, 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 denolfe transferred this issue from payloadcms/payload-3.0-demo May 22, 2024
@denolfe denolfe added v3 status: cant-reproduce If an issue cannot be reproduced labels May 22, 2024
@JarrodMFlesch
Copy link
Contributor

Closing, no reproduction given.

Copy link
Contributor

github-actions bot commented Sep 7, 2024

This issue has been automatically locked.
Please open a new issue if this issue persists with any additional detail.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants