mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
FIX: holiday card: hooks uninitialized
This commit is contained in:
parent
a983dc7506
commit
864a8b4b3e
|
|
@ -81,6 +81,9 @@ if (($id > 0) || $ref)
|
|||
}
|
||||
}
|
||||
|
||||
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
|
||||
$hookmanager->initHooks(array('holidaycard', 'globalcard'));
|
||||
|
||||
$cancreate = 0;
|
||||
if (!empty($user->rights->holiday->write_all)) $cancreate = 1;
|
||||
if (!empty($user->rights->holiday->write) && in_array($fuserid, $childids)) $cancreate = 1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user