Update webhookindex.php
This commit is contained in:
parent
a865388b9c
commit
c53658e24a
@ -58,15 +58,16 @@ if (!$res) {
|
|||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
|
||||||
|
|
||||||
// Load translation files required by the page
|
// Load translation files required by the page
|
||||||
$langs->loadLangs(array("webhook@webhook"));
|
$langs->loadLangs(array('webhook'));
|
||||||
|
|
||||||
$action = GETPOST('action', 'aZ09');
|
|
||||||
|
|
||||||
|
|
||||||
// Security check
|
// Security check
|
||||||
// if (! $user->rights->webhook->myobject->read) {
|
// if (! $user->rights->webhook->myobject->read) {
|
||||||
// accessforbidden();
|
// accessforbidden();
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
$action = GETPOST('action', 'aZ09');
|
||||||
$socid = GETPOST('socid', 'int');
|
$socid = GETPOST('socid', 'int');
|
||||||
if (isset($user->socid) && $user->socid > 0) {
|
if (isset($user->socid) && $user->socid > 0) {
|
||||||
$action = '';
|
$action = '';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user