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