You are here

function commerce_flat_rate_service_access in Commerce Flat Rate 7

Access callback: grants users access to flat rate service operations if they have the specific flat rate permission or generic shipping permission.

Parameters

$op: The operation string: of create, update, or delete.

Return value

Boolean indicating the user's access.

1 string reference to 'commerce_flat_rate_service_access'
commerce_flat_rate_menu in ./commerce_flat_rate.module
Implements hook_menu().

File

./commerce_flat_rate.module, line 115
Allows you to define any number of flat rate shipping services for customers to choose during checkout.

Code

function commerce_flat_rate_service_access($op) {
  return user_access('administer shipping') || user_access('administer flat rate services');
}