Update about.php
This commit is contained in:
parent
a865388b9c
commit
fce1c1a36a
@ -21,7 +21,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file zapier/admin/about.php
|
* \file htdocs/zapier/admin/about.php
|
||||||
* \ingroup zapier
|
* \ingroup zapier
|
||||||
* \brief About page of module Zapier.
|
* \brief About page of module Zapier.
|
||||||
*/
|
*/
|
||||||
@ -35,19 +35,21 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
|||||||
require_once '../lib/zapier.lib.php';
|
require_once '../lib/zapier.lib.php';
|
||||||
|
|
||||||
// Translations
|
// Translations
|
||||||
$langs->loadLangs(array("errors", "admin", "zapier"));
|
$langs->loadLangs(array('admin', 'errors', 'zapier'));
|
||||||
|
|
||||||
// Access control
|
// Access control
|
||||||
if (!$user->admin) {
|
if (!$user->admin) {
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (empty($conf->zapier->enabled)) accessforbidden();
|
||||||
|
if (empty($user->admin)) accessforbidden();
|
||||||
|
|
||||||
|
|
||||||
// Parameters
|
// Parameters
|
||||||
$action = GETPOST('action', 'aZ09');
|
$action = GETPOST('action', 'aZ09');
|
||||||
$backtopage = GETPOST('backtopage', 'alpha');
|
$backtopage = GETPOST('backtopage', 'alpha');
|
||||||
|
|
||||||
if (empty($conf->zapier->enabled)) accessforbidden();
|
|
||||||
if (empty($user->admin)) accessforbidden();
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user