Update info.php
This commit is contained in:
parent
2ef42c178b
commit
feafbaded2
@ -62,12 +62,13 @@ if (GETPOST('actioncode', 'array')) {
|
|||||||
}
|
}
|
||||||
$search_agenda_label = GETPOST('search_agenda_label');
|
$search_agenda_label = GETPOST('search_agenda_label');
|
||||||
|
|
||||||
|
$hookmanager->initHooks(array('projectcardinfo'));
|
||||||
|
|
||||||
// Security check
|
// Security check
|
||||||
$id = GETPOST("id", 'int');
|
$id = GETPOST("id", 'int');
|
||||||
$socid = 0;
|
$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.
|
//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');
|
$result = restrictedArea($user, 'projet', $id, 'projet&project');
|
||||||
$hookmanager->initHooks(array('projectcardinfo'));
|
|
||||||
|
|
||||||
if (!$user->rights->projet->lire) {
|
if (!$user->rights->projet->lire) {
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user