You are here

function userpoints_admin_access_transaction_pending in User Points 7

Same name and namespace in other branches
  1. 7.2 userpoints.module \userpoints_admin_access_transaction_pending()

Access callback for approve and decline local tasks.

Only pending transactions can be approved or declined.

1 string reference to 'userpoints_admin_access_transaction_pending'
userpoints_menu in ./userpoints.module
Implements hook_menu().

File

./userpoints.module, line 360

Code

function userpoints_admin_access_transaction_pending($transaction) {
  return $transaction->status == USERPOINTS_TXN_STATUS_PENDING && userpoints_admin_access('moderate');
}