-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fix check for order.guest_token
presence
#1705
Conversation
* In case the `order.guest_token` is an empty string, we don't want everyone to be able to view or update the order by passing empty `token=` parameter
Not sure if |
@vfonic is there any way (with the standard Solidus code) to end up with the empty string ( Using Alternatively (or in addition), we could add the following to the
|
As far as I could see, there's no way to end up with empty I'll see to make the validation change on Order model. |
@jhawthorn I'm not sure why would |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. Thank you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution!
👍
order.guest_token
is an empty string, we don't wanteveryone to be able to view or update the order by passing empty
token=
parameter