function uc_attribute_product_access in Ubercart 5
Same name and namespace in other branches
- 6.2 uc_attribute/uc_attribute.module \uc_attribute_product_access()
- 7.3 uc_attribute/uc_attribute.module \uc_attribute_product_access()
1 call to uc_attribute_product_access()
- uc_attribute_menu in uc_attribute/
uc_attribute.module - Implementation of hook_menu().
File
- uc_attribute/
uc_attribute.module, line 216
Code
function uc_attribute_product_access($nid) {
$node = node_load($nid);
if ($node->type == 'product_kit') {
return FALSE;
}
return uc_product_is_product($node) && node_access('update', $node) && (user_access('administer attributes') || user_access('administer product attributes'));
}