Merge pull request #22027 from dolibit-ut/patch-499

Update webhookindex.php
This commit is contained in:
Laurent Destailleur 2022-09-02 09:40:27 +02:00 committed by GitHub
commit 12e45e0f38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,15 +58,16 @@ if (!$res) {
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
// Load translation files required by the page
$langs->loadLangs(array("webhook@webhook"));
$langs->loadLangs(array('webhook'));
$action = GETPOST('action', 'aZ09');
// Security check
// if (! $user->rights->webhook->myobject->read) {
// accessforbidden();
// }
$action = GETPOST('action', 'aZ09');
$socid = GETPOST('socid', 'int');
if (isset($user->socid) && $user->socid > 0) {
$action = '';