From 6ba28ba5678a71aefc284352bacab5ee324a591f Mon Sep 17 00:00:00 2001 From: Vitalij Mik Date: Wed, 28 Feb 2024 14:30:33 +0100 Subject: [PATCH] NTR: Fix #704 --- .../app/administration/src/module/mollie-payments/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Resources/app/administration/src/module/mollie-payments/index.js b/src/Resources/app/administration/src/module/mollie-payments/index.js index 0fad54643..3ba8a0af7 100644 --- a/src/Resources/app/administration/src/module/mollie-payments/index.js +++ b/src/Resources/app/administration/src/module/mollie-payments/index.js @@ -31,7 +31,7 @@ systemConfig.getValues('MolliePayments').then(config => { const navigation = []; - if(config['MolliePayments.config.subscriptionsEnabled']) { + if (config['MolliePayments.config.subscriptionsEnabled']) { navigation.push({ id: 'mollie-subscriptions', label: 'mollie-payments.subscriptions.navigation.title', @@ -83,6 +83,9 @@ systemConfig.getValues('MolliePayments').then(config => { defaultSearchConfiguration, }); +}).catch((error) => { + //here we might get an error because the user dont have the permissions to read system config, we ignore it and dont show mollie plugin at all +}).finally(() => { // Now tell Shopware it's okay to load the administration resolve(); });