You are here

function stripe_customer_rules_access in Stripe 7

Rules integration access callback.

1 string reference to 'stripe_customer_rules_access'
stripe_customer_rules_event_info in stripe_customer/stripe_customer.rules.inc
Implements hook_rules_event_info().

File

stripe_customer/stripe_customer.module, line 33
Provides integration with Stripe and Drupal Users as Customers.

Code

function stripe_customer_rules_access($type, $name) {
  if ($type == 'event' || $type == 'condition') {
    return user_access('administer stripe customers');
  }
  return FALSE;
}