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

check_authorization first in CheckoutController #47

Merged
merged 3 commits into from
Apr 12, 2016

Conversation

bbuchalter
Copy link
Contributor

When we changed this to a prepend_before_filter we failed to recognize
that we needed to change the sequence of the filter definitions so that
check_authorization would fire before check_registration.

Also:

  • adds a guard to a call to current_order which may be nil
  • Adds vendor to .gitignore

It is common for developers to use $RAILS_ROOT/vendor to install
per-project gems via bundler. No need to have that be part git.
It is possible that for no current_order to be defined, and thus cause
an exception to be raised here.
When we changed this to a prepend_before_filter we failed to recognize
that we needed to change the sequence of the filter definitions so that
check_authorization would fire before check_registration.
@stewart
Copy link
Contributor

stewart commented Apr 12, 2016

👍, thanks again Brian.

@stewart stewart merged commit cc8b433 into solidusio:master Apr 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants