function commerce_product_post_update_1 in Commerce Core 8.2
Revert the Products view because of the updated permission.
File
- modules/
product/ commerce_product.post_update.php, line 13  - Post update functions for Product.
 
Code
function commerce_product_post_update_1() {
  /** @var \Drupal\commerce\Config\ConfigUpdaterInterface $config_updater */
  $config_updater = \Drupal::service('commerce.config_updater');
  $result = $config_updater
    ->revert([
    'views.view.commerce_products',
  ], FALSE);
  $message = implode('<br>', $result
    ->getFailed());
  return $message;
}