FIX : Adding hooks init
This commit is contained in:
parent
6bc40a5e26
commit
dedd0ef20d
2 changed files with 7 additions and 0 deletions
|
|
@ -45,6 +45,9 @@ $action = GETPOST('action', 'aZ09');
|
|||
if ($user->socid) {
|
||||
$socid = $user->socid;
|
||||
}
|
||||
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
|
||||
$hookmanager->initHooks(array('ordercontact'));
|
||||
|
||||
$result = restrictedArea($user, 'commande', $id, '');
|
||||
|
||||
$usercancreate = $user->hasRight("commande", "creer");
|
||||
|
|
|
|||
|
|
@ -80,6 +80,10 @@ $permissiontoadd = $usercancreate;
|
|||
if ($user->socid) {
|
||||
$socid = $user->socid;
|
||||
}
|
||||
|
||||
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
|
||||
$hookmanager->initHooks(array('ordercarddocument'));
|
||||
|
||||
$result = restrictedArea($user, 'commande', $id, '');
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue