FIx #yogosha5676

This commit is contained in:
Laurent Destailleur 2021-03-19 12:15:46 +01:00
parent ebf409f831
commit 3df866518d
2 changed files with 8 additions and 4 deletions

View File

@ -33,10 +33,6 @@ use OAuth\Common\Storage\DoliStorage;
// Load translation files required by the page
$langs->loadLangs(array('admin', 'printing', 'oauth'));
if (!$user->admin) {
accessforbidden();
}
$action = GETPOST('action', 'aZ09');
$mode = GETPOST('mode', 'alpha');
$value = GETPOST('value', 'alpha', 0, null, null, 1); // The value may be __google__docs so we force disable of replace
@ -53,6 +49,10 @@ if (!$mode) {
$OAUTH_SERVICENAME_GOOGLE = 'Google';
if (!$user->admin) {
accessforbidden();
}
/*
* Action

View File

@ -28,6 +28,10 @@ include_once DOL_DOCUMENT_ROOT.'/core/modules/printing/modules_printing.php';
// Load translation files required by the page
$langs->load("printing");
if (!$user->admin) {
accessforbidden();
}
/*
* Actions