function uc_attribute_product_option_access in Ubercart 7.3
Same name and namespace in other branches
- 5 uc_attribute/uc_attribute.module \uc_attribute_product_option_access()
- 6.2 uc_attribute/uc_attribute.module \uc_attribute_product_option_access()
Access callback for editing a product's options.
1 string reference to 'uc_attribute_product_option_access'
- uc_attribute_menu in uc_attribute/
uc_attribute.module - Implements hook_menu().
File
- uc_attribute/
uc_attribute.module, line 219 - Ubercart Attribute module.
Code
function uc_attribute_product_option_access($node) {
if ($node->type == 'product_kit') {
return FALSE;
}
return uc_product_is_product($node) && isset($node->attributes) && node_access('update', $node) && (user_access('administer attributes') || user_access('administer product attributes') || user_access('administer product options'));
}