From 3a463ac0611cde5c31116bc00e7bf6e7517ed37c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 23 Mar 2021 17:46:06 +0100 Subject: [PATCH] FIX #yogosha5723 --- htdocs/stripe/admin/stripe.php | 9 ++++++--- htdocs/stripe/charge.php | 1 + htdocs/stripe/payout.php | 1 + htdocs/stripe/transaction.php | 2 ++ 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/htdocs/stripe/admin/stripe.php b/htdocs/stripe/admin/stripe.php index edac0a79833..1fa1e616199 100644 --- a/htdocs/stripe/admin/stripe.php +++ b/htdocs/stripe/admin/stripe.php @@ -37,7 +37,10 @@ $servicename = 'Stripe'; // Load translation files required by the page $langs->loadLangs(array('admin', 'other', 'paypal', 'paybox', 'stripe')); -if (!$user->admin) { +if (empty($user->admin)) { + accessforbidden(); +} +if (empty($conf->stripe->enabled)) { accessforbidden(); } @@ -254,7 +257,7 @@ if (empty($conf->stripeconnect->enabled)) { } //print $endpoint; } else { - print img_picto($langs->trans("inactive"), 'statut5'); + print img_picto($langs->trans("Inactive"), 'statut5'); } } print''; @@ -319,7 +322,7 @@ if (empty($conf->stripeconnect->enabled)) { } //print $endpoint; } else { - print img_picto($langs->trans("inactive"), 'statut5'); + print img_picto($langs->trans("Inactive"), 'statut5'); } } print ''; diff --git a/htdocs/stripe/charge.php b/htdocs/stripe/charge.php index a3598f1d29f..c6a07593a04 100644 --- a/htdocs/stripe/charge.php +++ b/htdocs/stripe/charge.php @@ -52,6 +52,7 @@ $offset = $limit * $page; $pageprev = $page - 1; $pagenext = $page + 1; +$result = restrictedArea($user, 'banque'); /* diff --git a/htdocs/stripe/payout.php b/htdocs/stripe/payout.php index 68d3a759bf5..75c24ef0561 100644 --- a/htdocs/stripe/payout.php +++ b/htdocs/stripe/payout.php @@ -52,6 +52,7 @@ $offset = $limit * $page; $pageprev = $page - 1; $pagenext = $page + 1; +$result = restrictedArea($user, 'banque'); /* diff --git a/htdocs/stripe/transaction.php b/htdocs/stripe/transaction.php index cde14647061..0d43c830e8e 100644 --- a/htdocs/stripe/transaction.php +++ b/htdocs/stripe/transaction.php @@ -53,6 +53,8 @@ $pageprev = $page - 1; $pagenext = $page + 1; $optioncss = GETPOST('optioncss', 'alpha'); +$result = restrictedArea($user, 'banque'); + /* * View