fix right project info.php

This commit is contained in:
quentin 2020-08-06 14:11:26 +02:00
parent 641d9a6565
commit 215242a4a1

View File

@ -63,7 +63,7 @@ $search_agenda_label=GETPOST('search_agenda_label');
$id = GETPOST("id", 'int');
$socid=0;
//if ($user->societe_id > 0) $socid = $user->societe_id; // 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, '');
$result=restrictedArea($user, 'projet', $id, 'projet&project');
if (!$user->rights->projet->lire) accessforbidden();