You are here

function uc_stock_product_access in Ubercart 6.2

Same name and namespace in other branches
  1. 7.3 uc_stock/uc_stock.module \uc_stock_product_access()

Access callback for node/%node/edit/stock.

1 string reference to 'uc_stock_product_access'
uc_stock_menu in uc_stock/uc_stock.module
Implements hook_menu().

File

uc_stock/uc_stock.module, line 76

Code

function uc_stock_product_access($node) {
  if ($node->type == 'product_kit') {
    return FALSE;
  }
  return uc_product_is_product($node) && node_access('update', $node) && user_access('administer product stock');
}