Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
commerce-3021571
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
commerce-3021571
Commits
079c54f6
Commit
079c54f6
authored
8 years ago
by
Bojan Živanović
Browse files
Options
Downloads
Patches
Plain Diff
Grant the roles 'access checkout' permission on install, enable the module on Travis.
parent
48ceea96
No related branches found
Branches containing commit
Tags
5.x-1.0-alpha2
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.travis-before-script.sh
+1
-1
1 addition, 1 deletion
.travis-before-script.sh
modules/checkout/commerce_checkout.install
+15
-0
15 additions, 0 deletions
modules/checkout/commerce_checkout.install
with
16 additions
and
1 deletion
.travis-before-script.sh
+
1
−
1
View file @
079c54f6
...
...
@@ -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
This diff is collapsed.
Click to expand it.
modules/checkout/commerce_checkout.install
0 → 100644
+
15
−
0
View file @
079c54f6
<?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'
]);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment