Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In most configurations, users with 'edit all product kits' will also be given 'edit own product kits' - but if a user only has the first permission, they are not allowed to edit their own product kits due to the following code in uc_product_kit_access():
if ($account->uid == $node->uid) {
return user_access('edit own product kits');
}
else {
return user_access('edit all product kits');
}
Comments
Comment #1
TR CreditAttribution: TR commentedChanging component.
Comment #2
longwaveFixed, and also corrected the use of $account:
http://drupalcode.org/project/ubercart.git/commitdiff/f3366c2
No changes necessary in D7.