function commerce_product_install in Commerce Core 8.2
Implements hook_install().
File
- modules/
product/ commerce_product.install, line 17 - Install, update and uninstall functions for the Product module.
Code
function commerce_product_install() {
// Allow all roles to view published products.
user_role_grant_permissions(AccountInterface::ANONYMOUS_ROLE, [
'view commerce_product',
]);
user_role_grant_permissions(AccountInterface::AUTHENTICATED_ROLE, [
'view commerce_product',
]);
}