diff --git a/htdocs/ticket/list.php b/htdocs/ticket/list.php index e4ba75b84c5..44b9edf358e 100644 --- a/htdocs/ticket/list.php +++ b/htdocs/ticket/list.php @@ -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';