Add Init Hooks on several project tabs
This commit is contained in:
parent
a7cb3fa492
commit
c71bebfd21
@ -32,6 +32,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
|
||||
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array('projects', 'other'));
|
||||
$hookmanager->initHooks(array('projetcarddocument'));
|
||||
|
||||
$action = GETPOST('action', 'alpha');
|
||||
$confirm = GETPOST('confirm', 'alpha');
|
||||
|
||||
@ -67,6 +67,7 @@ $id = GETPOST("id", 'int');
|
||||
$socid = 0;
|
||||
//if ($user->socid > 0) $socid = $user->socid; // For external user, no check is done on company because readability is managed by public status of project and assignement.
|
||||
$result = restrictedArea($user, 'projet', $id, 'projet&project');
|
||||
$hookmanager->initHooks(array('projetcardinfo'));
|
||||
|
||||
if (!$user->rights->projet->lire) {
|
||||
accessforbidden();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user