FIX #yogosha5723

This commit is contained in:
Laurent Destailleur 2021-03-23 17:46:06 +01:00
parent cfa39597c3
commit 3a463ac061
4 changed files with 10 additions and 3 deletions

View File

@ -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>';

View File

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

View File

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

View File

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