fix ticket : an external user should be able to access only its own company tickets.

This commit is contained in:
Thomas Negre 2022-01-25 15:12:32 +01:00
parent 66287d645e
commit 0126be54a3

View File

@ -157,6 +157,8 @@ $arrayfields = dol_sort_array($arrayfields, 'position');
if (!$user->rights->ticket->read) {
accessforbidden();
}
// restrict view to current user's company
if ($user->socid > 0) $socid = $user->socid;
// Store current page url
$url_page_current = DOL_URL_ROOT.'/ticket/list.php';