You are here

function commerce_mollie_transfer_transaction_confirm_access in Commerce Mollie 7

Access callback function to limit access to Mollie payments.

1 string reference to 'commerce_mollie_transfer_transaction_confirm_access'
commerce_mollie_menu in ./commerce_mollie.module
Implements hook_menu().

File

./commerce_mollie.module, line 76

Code

function commerce_mollie_transfer_transaction_confirm_access($order, $transaction = NULL, $account = NULL) {
  if (user_access('mollie payment status request')) {
    $access = commerce_payment_transaction_access('update', $transaction, $account);
    if ($access && $transaction) {
      if ($transaction->payment_method != 'commerce_mollie') {
        $access = FALSE;
      }
    }
    return $access;
  }
  return FALSE;
}