fix ticket : an external user should be able to access only its own company tickets.
This commit is contained in:
parent
66287d645e
commit
0126be54a3
@ -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';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user