We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0660fc6 commit 0b5a3fbCopy full SHA for 0b5a3fb
1 file changed
modules/payment/commerce_payment.install
@@ -6,6 +6,15 @@
6
*/
7
8
use Drupal\Core\Field\BaseFieldDefinition;
9
+use Drupal\Core\Session\AccountInterface;
10
+
11
+/**
12
+ * Implements hook_install().
13
+ */
14
+function commerce_payment_install() {
15
+ // Allow authenticated users to manage own payment methods.
16
+ user_role_grant_permissions(AccountInterface::AUTHENTICATED_ROLE, ['manage own commerce_payment_method']);
17
+}
18
19
/**
20
* Add the payment_gateway_mode field to payments and payment methods.
0 commit comments