Skip to content

Commit

Permalink
NTR: Fix #704
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalij Mik committed Feb 28, 2024
1 parent b2eff45 commit 6ba28ba
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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();
});

0 comments on commit 6ba28ba

Please sign in to comment.