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

[4.x]: If editor checks out with user email Craft removes permissions #3244

Closed
philipboomy opened this issue Aug 5, 2023 · 4 comments
Closed
Labels
bug commerce4 Issues related to Commerce v4

Comments

@philipboomy
Copy link

What happened?

Description

An editor with user permissions and active Craft account checked out as guest with the his craft user email address. His account got messed up. He lost access to CP, permissions gone and account was in active.

Steps to reproduce

  1. Created a user with some permissions. Not an admin account.
  2. Be signed in as the user
  3. Checkout as guest using the same email as the user above.
  4. Try to log in after this.
  1. Log in with another account and see that the editor account is now "inactive" and no permission are set.

Craft CMS version

4.4.13

Craft Commerce version

4.2.9

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

@philipboomy philipboomy added commerce4 Issues related to Commerce v4 bug labels Aug 5, 2023
@lukeholder
Copy link
Member

@philipboomy Sorry not quite understanding the steps to reproduce. How does the user checkout as guest while they are logged in?

@philipboomy
Copy link
Author

We only do guest checkout meaning we do not create accounts after checkouts. The editor was logged in when he checked out so the email was pre-filled with his email address on the checkout page. Does that make sense? If not I can try to replicate locally.

@lukeholder
Copy link
Member

Creating an account after checkout doesn't make it a guest checkout, guest checkout just means they are not logged in while checking out.

Please try to reproduce locally and let me know and I'll take a look.

@philipboomy
Copy link
Author

Sorry. Was on holiday. I cannot replicate it. Tried both being logged in and not logged in but using the editor email address for the billing email. All I can do is to keep an eye on it. I know it happened as I had to recreate the permissions but there must have been something else happening at the same time as I cannot replicate it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug commerce4 Issues related to Commerce v4
Projects
None yet
Development

No branches or pull requests

2 participants