You are here

function uc_product_feature_access in Ubercart 6.2

Same name and namespace in other branches
  1. 7.3 uc_product/uc_product.module \uc_product_feature_access()

Menu access callback for 'node/%node/edit/features'.

1 string reference to 'uc_product_feature_access'
uc_product_menu in uc_product/uc_product.module
Implements hook_menu().

File

uc_product/uc_product.module, line 223
The product module for Ubercart.

Code

function uc_product_feature_access($node) {
  global $user;
  return uc_product_is_product($node) && $node->type != 'product_kit' && (user_access('administer product features') || user_access('administer own product features') && $user->uid == $node->uid);
}