function commerce_payment_install in Commerce Core 8.2
Implements hook_install().
File
- modules/
payment/ commerce_payment.install, line 17 - Install, update and uninstall functions for the commerce_payment module.
Code
function commerce_payment_install() {
// Allow authenticated users to manage own payment methods.
user_role_grant_permissions(AccountInterface::AUTHENTICATED_ROLE, [
'manage own commerce_payment_method',
]);
}