mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
base authorization on the payment's order
This commit is contained in:
@@ -9,7 +9,7 @@ class PaymentsController < BaseController
|
||||
|
||||
def redirect_to_authorize
|
||||
@payment = Spree::Payment.find(params[:id])
|
||||
authorize! :show, @payment
|
||||
authorize! :show, @payment.order
|
||||
|
||||
if url = @payment.cvv_response_message
|
||||
redirect_to url
|
||||
|
||||
Reference in New Issue
Block a user