FIX #yogosha5723
This commit is contained in:
parent
cfa39597c3
commit
3a463ac061
@ -37,7 +37,10 @@ $servicename = 'Stripe';
|
|||||||
// Load translation files required by the page
|
// Load translation files required by the page
|
||||||
$langs->loadLangs(array('admin', 'other', 'paypal', 'paybox', 'stripe'));
|
$langs->loadLangs(array('admin', 'other', 'paypal', 'paybox', 'stripe'));
|
||||||
|
|
||||||
if (!$user->admin) {
|
if (empty($user->admin)) {
|
||||||
|
accessforbidden();
|
||||||
|
}
|
||||||
|
if (empty($conf->stripe->enabled)) {
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -254,7 +257,7 @@ if (empty($conf->stripeconnect->enabled)) {
|
|||||||
}
|
}
|
||||||
//print $endpoint;
|
//print $endpoint;
|
||||||
} else {
|
} else {
|
||||||
print img_picto($langs->trans("inactive"), 'statut5');
|
print img_picto($langs->trans("Inactive"), 'statut5');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
print'</td></tr>';
|
print'</td></tr>';
|
||||||
@ -319,7 +322,7 @@ if (empty($conf->stripeconnect->enabled)) {
|
|||||||
}
|
}
|
||||||
//print $endpoint;
|
//print $endpoint;
|
||||||
} else {
|
} else {
|
||||||
print img_picto($langs->trans("inactive"), 'statut5');
|
print img_picto($langs->trans("Inactive"), 'statut5');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|||||||
@ -52,6 +52,7 @@ $offset = $limit * $page;
|
|||||||
$pageprev = $page - 1;
|
$pageprev = $page - 1;
|
||||||
$pagenext = $page + 1;
|
$pagenext = $page + 1;
|
||||||
|
|
||||||
|
$result = restrictedArea($user, 'banque');
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@ -52,6 +52,7 @@ $offset = $limit * $page;
|
|||||||
$pageprev = $page - 1;
|
$pageprev = $page - 1;
|
||||||
$pagenext = $page + 1;
|
$pagenext = $page + 1;
|
||||||
|
|
||||||
|
$result = restrictedArea($user, 'banque');
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@ -53,6 +53,8 @@ $pageprev = $page - 1;
|
|||||||
$pagenext = $page + 1;
|
$pagenext = $page + 1;
|
||||||
$optioncss = GETPOST('optioncss', 'alpha');
|
$optioncss = GETPOST('optioncss', 'alpha');
|
||||||
|
|
||||||
|
$result = restrictedArea($user, 'banque');
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* View
|
* View
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user