Skip to content
Snippets Groups Projects
Commit 4f7baa96 authored by simon's avatar simon
Browse files

i5431 only allow reference field for users with permission to administer payment methods

parent 652a0d0b
Branches master
No related merge requests found
......@@ -73,6 +73,7 @@ class SepaPaymentMethodAddForm extends BasePaymentMethodAddForm {
'#title' => t('Reference'),
'#maxlength' => 34,
'#description' => t('Reference of the mandate (leave empty to autogenerate)'),
'#access' => \Drupal::currentUser()->hasPermission('administer commerce_payment_method'),
];
return $element;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment