Browse Source

FIX #yogosha5723

Laurent Destailleur 4 years ago
parent
commit
3a463ac061

+ 6 - 3
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'</td></tr>';
@@ -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 '</td></tr>';

+ 1 - 0
htdocs/stripe/charge.php

@@ -52,6 +52,7 @@ $offset = $limit * $page;
 $pageprev = $page - 1;
 $pagenext = $page + 1;
 
+$result = restrictedArea($user, 'banque');
 
 
 /*

+ 1 - 0
htdocs/stripe/payout.php

@@ -52,6 +52,7 @@ $offset = $limit * $page;
 $pageprev = $page - 1;
 $pagenext = $page + 1;
 
+$result = restrictedArea($user, 'banque');
 
 
 /*

+ 2 - 0
htdocs/stripe/transaction.php

@@ -53,6 +53,8 @@ $pageprev = $page - 1;
 $pagenext = $page + 1;
 $optioncss = GETPOST('optioncss', 'alpha');
 
+$result = restrictedArea($user, 'banque');
+
 
 /*
  * View