Merge pull request #19922 from thomas-Ngr/develop_fix_restrict_external_user_ticket_list

fix :  restrict external user ticket list view
This commit is contained in:
Laurent Destailleur 2022-01-25 16:07:18 +01:00 committed by GitHub
commit 58fcf88e24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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';