diff --git a/modules/payment/commerce_payment_ui.module b/modules/payment/commerce_payment_ui.module index db93e94..1ba6d68 100644 --- a/modules/payment/commerce_payment_ui.module +++ b/modules/payment/commerce_payment_ui.module @@ -172,7 +172,7 @@ function commerce_payment_ui_payment_transaction_uri($transaction) { // Only return a value if the transaction references an order and the user has // permission to view the payment transaction. if ($order = commerce_order_load($transaction->order_id)) { - if (commerce_payment_transaction_access('view', $order, $transaction)) { + if (commerce_payment_transaction_access('view', $transaction)) { return array( 'path' => 'admin/commerce/orders/' . $order->order_id . '/payment/' . $transaction->transaction_id . '/view', ); diff --git a/modules/payment/includes/commerce_payment.forms.inc b/modules/payment/includes/commerce_payment.forms.inc index 0ce2bbc..298924e 100644 --- a/modules/payment/includes/commerce_payment.forms.inc +++ b/modules/payment/includes/commerce_payment.forms.inc @@ -19,7 +19,7 @@ function commerce_payment_order_transaction_add_form($form, &$form_state, $order // Store the initial order in the form state. $form_state['order'] = $order; - $form['#access'] = commerce_payment_transaction_access('create', $order); + $form['#access'] = commerce_payment_transaction_order_access('create', $order); // If a payment method has already been selected... if (!empty($form_state['payment_method'])) { diff --git a/modules/payment/includes/views/handlers/commerce_payment_handler_field_payment_transaction_link_delete.inc b/modules/payment/includes/views/handlers/commerce_payment_handler_field_payment_transaction_link_delete.inc index 836b8bb..368127d 100644 --- a/modules/payment/includes/views/handlers/commerce_payment_handler_field_payment_transaction_link_delete.inc +++ b/modules/payment/includes/views/handlers/commerce_payment_handler_field_payment_transaction_link_delete.inc @@ -12,7 +12,7 @@ class commerce_payment_handler_field_payment_transaction_link_delete extends com $order = commerce_order_load($order_id); $transaction = commerce_payment_transaction_load($transaction_id); - if (commerce_payment_transaction_access('delete', $order, $transaction)) { + if (commerce_payment_transaction_access('delete', $transaction)) { $text = !empty($this->options['text']) ? $this->options['text'] : t('delete'); return l($text, 'admin/commerce/orders/' . $order_id . '/payment/' . $transaction_id .'/delete', array('query' => drupal_get_destination())); }