Skip to content
Snippets Groups Projects
Commit 079c54f6 authored by Bojan Živanović's avatar Bojan Živanović
Browse files

Grant the roles 'access checkout' permission on install, enable the module on Travis.

parent 48ceea96
No related branches found
Tags 5.x-1.0-alpha2
No related merge requests found
......@@ -32,4 +32,4 @@ composer drupal-rebuild
composer update -n --lock --verbose
# Enable main module and submodules.
drush en -y commerce commerce_product commerce_order
drush en -y commerce commerce_product commerce_order commerce_checkout
<?php
/**
* @file
* Contains install and update functions for Checkout.
*/
/**
* Implements hook_install().
*/
function commerce_checkout_install() {
// Allow all roles to use checkout.
user_role_grant_permissions('anonymous', ['access checkout']);
user_role_grant_permissions('authenticated', ['access checkout']);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment