You are here

function commerce_order_install in Commerce Core 8.2

Implements hook_install().

File

modules/order/commerce_order.install, line 15
Install, update and uninstall functions for the Order module.

Code

function commerce_order_install() {

  // Allow authenticated users to view own orders.
  user_role_grant_permissions(AccountInterface::AUTHENTICATED_ROLE, [
    'view own commerce_order',
  ]);
}